|
|
@ -300,10 +300,11 @@ 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)
|
|
|
|
|
|
|
|
|
|
|
|
for elb in ec2_elbs:
|
|
|
|
if ec2_elbs is not None:
|
|
|
|
if not elb_man.exists(elb):
|
|
|
|
for elb in ec2_elbs:
|
|
|
|
msg="ELB %s does not exist" % elb
|
|
|
|
if not elb_man.exists(elb):
|
|
|
|
module.fail_json(msg=msg)
|
|
|
|
msg="ELB %s does not exist" % elb
|
|
|
|
|
|
|
|
module.fail_json(msg=msg)
|
|
|
|
|
|
|
|
|
|
|
|
if module.params['state'] == 'present':
|
|
|
|
if module.params['state'] == 'present':
|
|
|
|
elb_man.register(wait, enable_availability_zone)
|
|
|
|
elb_man.register(wait, enable_availability_zone)
|
|
|
|