From 57b72d242aafae24bb246e26fce6d27edc5b6989 Mon Sep 17 00:00:00 2001 From: Tim Gerla Date: Wed, 26 Jun 2013 09:22:16 -0700 Subject: [PATCH] ec2 inventory plugin: fix whitespace around connection validity test --- plugins/inventory/ec2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 3b495d47071..9a2505feb2c 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -245,10 +245,10 @@ class Ec2Inventory(object): else: conn = ec2.connect_to_region(region) - # connect_to_region will fail "silently" by returning None if the region name is wrong or not supported - if conn is None: - print("region name: %s likely not supported, or AWS is down. connection to region failed." % region) - sys.exit(1) + # connect_to_region will fail "silently" by returning None if the region name is wrong or not supported + if conn is None: + print("region name: %s likely not supported, or AWS is down. connection to region failed." % region) + sys.exit(1) reservations = conn.get_all_instances() for reservation in reservations: