Example #1
0
    def getKickstartChildChannel(self, kickstart, child, system_id):
        """ Gets channel information for this kickstart tree"""
        log_debug(5, kickstart, child)
        # authenticate that this request is initiated from a proxy
        self.auth_system(system_id)
        if (hasattr(CFG, 'KS_RESTRICT_CHILD_CHANNELS')
                and CFG.KS_RESTRICT_CHILD_CHANNELS):
            return getKickstartChannel(kickstart)

        ret = rhnChannel.getChildChannelInfoForKickstart(kickstart, child)
        return self.__getKickstart(kickstart, ret)
Example #2
0
    def getKickstartChildChannel(self, kickstart, child, system_id):
        """ Gets channel information for this kickstart tree"""
        log_debug(5, kickstart, child)
        # authenticate that this request is initiated from a proxy
        self.auth_system(system_id)
        if (hasattr(CFG, 'KS_RESTRICT_CHILD_CHANNELS') and
                CFG.KS_RESTRICT_CHILD_CHANNELS):
            return getKickstartChannel(kickstart)

        ret = rhnChannel.getChildChannelInfoForKickstart(kickstart, child)
        return self.__getKickstart(kickstart, ret)