diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 7ac3aa96191..fcad5703ee4 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -274,7 +274,7 @@ class Ec2Inventory(object): addressable ''' # Only want running instances - if instance.state == 'terminated': + if instance.state != 'running': return # Select the best destination address