Exemplo n.º 1
0
 def subscribeChannels(self, system_id, channelNames, username, passwd):
     """ Clients v2+ """
     log_debug(5, system_id, channelNames, username, passwd)
     # Authenticate the system certificate
     self.auth_system('subscribeChannel', system_id)
     # log the entry
     log_debug(1, self.server_id, channelNames)
     for channelName in channelNames:
         rhnChannel.subscribe_channel(self.server_id, channelName,
                                      username, passwd)
     return 0
Exemplo n.º 2
0
 def subscribeChannels(self, system_id, channelNames, username, passwd):
     """ Clients v2+ """
     log_debug(5, system_id, channelNames, username, passwd)
     # Authenticate the system certificate
     self.auth_system('subscribeChannel', system_id)
     # log the entry
     log_debug(1, self.server_id, channelNames)
     server_lib.snapshot_server(self.server_id, 'Base Channel Updated')
     for channelName in channelNames:
         if NONSUBSCRIBABLE_CHANNELS.search(channelName):
             raise rhnFault(73, explain=False)
         else:
             rhnChannel.subscribe_channel(self.server_id, channelName,
                                          username, passwd)
     return 0
Exemplo n.º 3
0
 def subscribeChannels(self, system_id, channelNames, username, passwd):
     """ Clients v2+ """
     log_debug(5, system_id, channelNames, username, passwd)
     # Authenticate the system certificate
     self.auth_system('subscribeChannel', system_id)
     # log the entry
     log_debug(1, self.server_id, channelNames)
     server_lib.snapshot_server(self.server_id, 'Base Channel Updated')
     for channelName in channelNames:
         if NONSUBSCRIBABLE_CHANNELS.search(channelName):
             raise rhnFault(73, explain=False)
         else:
             rhnChannel.subscribe_channel(self.server_id, channelName,
                                      username, passwd)
     return 0