mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 22:31:06 -07: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:
parent
9a6031ab4e
commit
e9551df5ed
14 changed files with 28 additions and 29 deletions
|
@ -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] = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue