From 3e5a33f10629490797fb066268cf1b1094cbf944 Mon Sep 17 00:00:00 2001 From: Michael Schuett Date: Fri, 24 Jul 2015 17:54:47 -0400 Subject: [PATCH] Typo Remove typo from when I recently was testing logic for also having an include state. --- lib/ansible/modules/extras/cloud/amazon/ec2_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_search.py b/lib/ansible/modules/extras/cloud/amazon/ec2_search.py index b6ce223b158..cc8929d5f37 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_search.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_search.py @@ -135,7 +135,7 @@ def main(): for instance in [i for r in reservations for i in r.instances]: if instance.private_ip_address != None: instance.hostname = 'ip-' + instance.private_ip_address.replace('.', '-') - if instance._state.name not in module.params.get('ignore_state') and : + if instance._state.name not in module.params.get('ignore_state'): server_info.append(todict(instance)) except: print module.jsonify('error getting instances from: ' + region.name)