mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix missing instance_id param in ec2_eip.
This commit is contained in:
parent
1ae799f361
commit
8b2327fe3a
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ def ensure_present(ec2, domain, address, instance_id,
|
||||||
return {'changed': changed, 'public_ip': address.public_ip}
|
return {'changed': changed, 'public_ip': address.public_ip}
|
||||||
|
|
||||||
|
|
||||||
def ensure_absent(ec2, domain, address, check_mode):
|
def ensure_absent(ec2, domain, address, instance_id, check_mode):
|
||||||
if not address:
|
if not address:
|
||||||
return {'changed': False}
|
return {'changed': False}
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ def main():
|
||||||
reuse_existing_ip_allowed,
|
reuse_existing_ip_allowed,
|
||||||
module.check_mode)
|
module.check_mode)
|
||||||
else:
|
else:
|
||||||
result = ensure_absent(ec2, domain, address, module.check_mode)
|
result = ensure_absent(ec2, domain, address, instance_id, module.check_mode)
|
||||||
except (boto.exception.EC2ResponseError, EIPException) as e:
|
except (boto.exception.EC2ResponseError, EIPException) as e:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue