mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +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 '''
|
||||
|
||||
# Only want running instances
|
||||
if instance.state == 'terminated':
|
||||
if instance.state != 'running':
|
||||
return
|
||||
|
||||
# Select the best destination address
|
||||
|
||||
Reference in New Issue
Block a user