add NoneType check.
This commit is contained in:
parent
a33119dede
commit
14d6bda763
1 changed files with 5 additions and 4 deletions
|
@ -300,6 +300,7 @@ def main():
|
||||||
elb_man = ElbManager(module, instance_id, ec2_elbs, aws_access_key,
|
elb_man = ElbManager(module, instance_id, ec2_elbs, aws_access_key,
|
||||||
aws_secret_key, region=region)
|
aws_secret_key, region=region)
|
||||||
|
|
||||||
|
if ec2_elbs is not None:
|
||||||
for elb in ec2_elbs:
|
for elb in ec2_elbs:
|
||||||
if not elb_man.exists(elb):
|
if not elb_man.exists(elb):
|
||||||
msg="ELB %s does not exist" % elb
|
msg="ELB %s does not exist" % elb
|
||||||
|
|
Loading…
Reference in a new issue