rhn_channel using depriciated methods. swapped out with their replacements
This commit is contained in:
parent
5c90040626
commit
2cbaf16bcd
1 changed files with 9 additions and 8 deletions
|
@ -90,17 +90,17 @@ def get_systemid(client, session, sysname):
|
||||||
|
|
||||||
# ------------------------------------------------------- #
|
# ------------------------------------------------------- #
|
||||||
|
|
||||||
def subscribe_channels(channels, client, session, sysname, sys_id):
|
def subscribe_channels(channelname, client, session, sysname, sys_id):
|
||||||
c = base_channels(client, session, sys_id)
|
channels = base_channels(client, session, sys_id)
|
||||||
c.append(channels)
|
channels.append(channelname)
|
||||||
return client.channel.software.setSystemChannels(session, sys_id, c)
|
return client.system.setChildChannels(session, sys_id, channels)
|
||||||
|
|
||||||
# ------------------------------------------------------- #
|
# ------------------------------------------------------- #
|
||||||
|
|
||||||
def unsubscribe_channels(channels, client, session, sysname, sys_id):
|
def unsubscribe_channels(channelname, client, session, sysname, sys_id):
|
||||||
c = base_channels(client, session, sys_id)
|
channels = base_channels(client, session, sys_id)
|
||||||
c.remove(channels)
|
channels.remove(channelname)
|
||||||
return client.channel.software.setSystemChannels(session, sys_id, c)
|
return client.system.setChildChannels(session, sys_id, channels)
|
||||||
|
|
||||||
# ------------------------------------------------------- #
|
# ------------------------------------------------------- #
|
||||||
|
|
||||||
|
@ -167,3 +167,4 @@ def main():
|
||||||
# import module snippets
|
# import module snippets
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue