mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Update CI (#1782)
* Update targets for CI for devel branch; move some targets to stable-2.10. * Skipping test on RHEL 8.3 (it is already skipped on RHEL 8.2). * Linting. * Shut 2.9/2.10 pylint complaints up.
This commit is contained in:
@@ -67,10 +67,10 @@ def list_groups(api):
|
||||
members = []
|
||||
|
||||
if 'member_host' in hostgroup:
|
||||
members = [host for host in hostgroup['member_host']]
|
||||
members = list(hostgroup['member_host'])
|
||||
if 'memberindirect_host' in hostgroup:
|
||||
members += (host for host in hostgroup['memberindirect_host'])
|
||||
inventory[hostgroup['cn'][0]] = {'hosts': [host for host in members]}
|
||||
inventory[hostgroup['cn'][0]] = {'hosts': list(members)}
|
||||
|
||||
for member in members:
|
||||
hostvars[member] = {}
|
||||
|
||||
Reference in New Issue
Block a user