1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Improve formatting after previous commit

This commit is contained in:
Jean-Baptiste Barth 2015-01-06 17:34:57 +01:00 committed by Matt Clay
parent 58ff9bece2
commit c0b2960892

View file

@ -919,12 +919,13 @@ def create_instances(module, ec2, override_count=None):
# The instances returned through ec2.run_instances above can be in
# terminated state due to idempotency. See commit 7f11c3d for a complete
# explanation.
terminated_instances = [ str(instance.id) for instance in res.instances
if instance.state == 'terminated' ]
terminated_instances = [
str(instance.id) for instance in res.instances if instance.state == 'terminated'
]
if terminated_instances:
module.fail_json(msg = "Instances with id(s) %s " % terminated_instances +
"were created previously but have since been terminated - " +
"use a (possibly different) 'instanceid' parameter")
"were created previously but have since been terminated - " +
"use a (possibly different) 'instanceid' parameter")
else:
if private_ip: