mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
parent
1609afbd12
commit
cb76200c7d
119 changed files with 339 additions and 378 deletions
|
@ -43,7 +43,7 @@ def delete_autoscaling_group(get_func, attr, opts):
|
|||
if tmp_groups:
|
||||
tmp_group = tmp_groups[0]
|
||||
if not tmp_group.instances:
|
||||
instances = False
|
||||
instances = False
|
||||
time.sleep(10)
|
||||
|
||||
group.delete()
|
||||
|
@ -55,15 +55,15 @@ def delete_aws_eips(get_func, attr, opts):
|
|||
|
||||
# the file might not be there if the integration test wasn't run
|
||||
try:
|
||||
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
||||
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
||||
except IOError:
|
||||
print('%s not found.' % opts.eip_log)
|
||||
return
|
||||
print('%s not found.' % opts.eip_log)
|
||||
return
|
||||
|
||||
for item in get_func():
|
||||
val = getattr(item, attr)
|
||||
if val in eip_log:
|
||||
prompt_and_delete(item, "Delete matching %s? [y/n]: " % (item,), opts.assumeyes)
|
||||
prompt_and_delete(item, "Delete matching %s? [y/n]: " % (item,), opts.assumeyes)
|
||||
|
||||
def delete_aws_instances(reservation, opts):
|
||||
for list in reservation:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue