Commit fabb2a61 by Michael DeHaan

Merge pull request #1946 from tgerla/devel

Only inventory "running" EC2 instances. "stopped" is also a valid state ...
parents 0243b7be 168fcb0a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment