mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00: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:
@@ -1040,7 +1040,7 @@ def create_instances(module, ec2, vpc, override_count=None):
|
||||
running_instances = []
|
||||
count_remaining = int(count)
|
||||
|
||||
if id != None:
|
||||
if id is not None:
|
||||
filter_dict = {'client-token':id, 'instance-state-name' : 'running'}
|
||||
previous_reservations = ec2.get_all_instances(None, filter_dict)
|
||||
for res in previous_reservations:
|
||||
|
||||
Reference in New Issue
Block a user