Only inventory "running" EC2 instances. "stopped" is also a valid state and these should not be inventoried.

pull/1946/head
Tim Gerla 12 years ago
parent 0243b7be7c
commit 168fcb0a4a

@ -274,7 +274,7 @@ class Ec2Inventory(object):
addressable ''' addressable '''
# Only want running instances # Only want running instances
if instance.state == 'terminated': if instance.state != 'running':
return return
# Select the best destination address # Select the best destination address

Loading…
Cancel
Save