Merge pull request #30644 from tbaker57/another_go_at_30573

Another go at fixing 30573
This commit is contained in:
Nicole Thomas 2016-01-26 13:18:41 -07:00
commit 30e03a8b0c
2 changed files with 22 additions and 21 deletions

View File

@ -147,7 +147,7 @@ def get_elb_config(name, region=None, key=None, keyid=None, profile=None):
return ret return ret
except boto.exception.BotoServerError as error: except boto.exception.BotoServerError as error:
log.debug(error) log.debug(error)
return [] return {}
def create(name, availability_zones, listeners=None, subnets=None, def create(name, availability_zones, listeners=None, subnets=None,

View File

@ -334,6 +334,7 @@ def present(
lb = __salt__['boto_elb.get_elb_config']( lb = __salt__['boto_elb.get_elb_config'](
name, region, key, keyid, profile name, region, key, keyid, profile
) )
if len(lb) > 0:
for cname in cnames: for cname in cnames:
_ret = __states__['boto_route53.present']( _ret = __states__['boto_route53.present'](
name=cname.get('name'), name=cname.get('name'),