mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Merge branch 'devel' of https://github.com/pieteravonts/ansible into pieteravonts-devel
This commit is contained in:
commit
7272aa0347
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ def unsubscribe_channels(channels, client, session, sysname, sys_id):
|
||||||
|
|
||||||
def base_channels(client, session, sys_id):
|
def base_channels(client, session, sys_id):
|
||||||
basechan = client.channel.software.listSystemChannels(session, sys_id)
|
basechan = client.channel.software.listSystemChannels(session, sys_id)
|
||||||
chans = [item['channel_label'] for item in basechan]
|
try:
|
||||||
|
chans = [item['label'] for item in basechan]
|
||||||
|
except KeyError:
|
||||||
|
chans = [item['channel_label'] for item in basechan]
|
||||||
return chans
|
return chans
|
||||||
|
|
||||||
# ------------------------------------------------------- #
|
# ------------------------------------------------------- #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue