mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1946 from tgerla/devel
Only inventory "running" EC2 instances. "stopped" is also a valid state ...
This commit is contained in:
commit
fabb2a61de
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue