configchannel.channelExists always returns 0

Latest response

I am trying to verify a channel exists using the channelExists method from the satellite API. No matter what I try it keeps returning "0". Can someone help me figure out what I am doing wrong?

I have attached my script for review.

The problem line is:
if not client.configchannel.channelExists(key, clone_channel_details):

Attachments

Responses

Hi Joseph,

As per the python script you have shared I see that in this script you are managing Software channels which has rpms in it. But the API "configchannel.channelExists" is for configuration channels which has configuration files uploaded in it.

Software channels are different than Configuration channels so API is returning "0".

Regards,
Ashish