mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 16:34:02 -07:00
PEP 8 cleanup. (#20789)
* PEP 8 E703 cleanup. * PEP 8 E701 cleanup. * PEP 8 E711 cleanup. * PEP 8 W191 and E101 cleanup.
This commit is contained in:
parent
c29d1e3162
commit
d0d1158c5e
72 changed files with 184 additions and 174 deletions
|
@ -506,7 +506,7 @@ def deregister_image(module, ec2):
|
|||
wait_timeout = int(module.params.get('wait_timeout'))
|
||||
|
||||
img = ec2.get_image(image_id)
|
||||
if img == None:
|
||||
if img is None:
|
||||
module.fail_json(msg = "Image %s does not exist" % image_id, changed=False)
|
||||
|
||||
# Get all associated snapshot ids before deregistering image otherwise this information becomes unavailable
|
||||
|
@ -562,7 +562,7 @@ def update_image(module, ec2, image_id):
|
|||
launch_permissions['user_ids'] = [str(user_id) for user_id in launch_permissions['user_ids']]
|
||||
|
||||
img = ec2.get_image(image_id)
|
||||
if img == None:
|
||||
if img is None:
|
||||
module.fail_json(msg = "Image %s does not exist" % image_id, changed=False)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue