mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #30644 from tbaker57/another_go_at_30573
Another go at fixing 30573
This commit is contained in:
commit
30e03a8b0c
@ -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,
|
||||||
|
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user