Commit 94567b21 by Michael DeHaan

Merge pull request #4698 from succhiello/feature/allow_deregister_without_ec2_elbs

add NoneType check.
parents 6d0da41a c1c32c75
...@@ -300,6 +300,7 @@ def main(): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment