mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Minor indentation fixes on ec2_eip
This commit is contained in:
parent
3281139981
commit
1134f6169c
1 changed files with 6 additions and 6 deletions
|
@ -143,13 +143,13 @@ def find_address(ec2, public_ip, module):
|
||||||
|
|
||||||
while wait_timeout > time.time():
|
while wait_timeout > time.time():
|
||||||
try:
|
try:
|
||||||
addresses = ec2.get_all_addresses([public_ip])
|
addresses = ec2.get_all_addresses([public_ip])
|
||||||
break
|
break
|
||||||
except boto.exception.EC2ResponseError, e:
|
except boto.exception.EC2ResponseError, e:
|
||||||
if "Address '%s' not found." % public_ip in e.message :
|
if "Address '%s' not found." % public_ip in e.message :
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=str(e.message))
|
module.fail_json(msg=str(e.message))
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
if wait_timeout <= time.time():
|
if wait_timeout <= time.time():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue