def enable_availability_zones(name, availability_zones, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if isinstance(availability_zones, string_types):
  availability_zones = json.loads(availability_zones)
 try:
  conn.enable_availability_zones(name, availability_zones)
  msg = 'Enabled availability_zones on ELB {0}'.format(name)
  log.info(msg)
  return True
 except boto.exception.BotoServerError as error:
  log.debug(error)
  msg = 'Failed to enable availability_zones on ELB {0}: {1}'.format(name, error)
  log.error(msg)
  return False

def enable_availability_zones ( name , availability_zones , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if isinstance ( availability_zones , string_types ) : availability_zones = json . loads ( availability_zones ) try : conn . enable_availability_zones ( name , availability_zones ) msg = 'Enabled availability_zones on ELB {0}' . format ( name ) log . info ( msg ) return True except boto . exception . BotoServerError as error : log . debug ( error ) msg = 'Failed to enable availability_zones on ELB {0}: {1}' . format ( name , error ) log . error ( msg ) return False
enable availability zones for elb .