mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #1946 from tgerla/devel
Only inventory "running" EC2 instances. "stopped" is also a valid state ...
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user