Red Hat Bugzilla – Bug 492481
channel.software.clone method creates custom channel, NOT cloned channel
Last modified: 2015-03-22 21:09:47 EDT
Created attachment 336919 [details]
simple script to test the problem
Description of problem:
Python channel.software.clone method creates standard custom channel, not cloned channel.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. use script to create cloned channel
2. check web ui: Channels->Manage Software Channels->click on channel name
3. "Details" tab does not list the "Cloned From:" property
4. "Errata" tab does not list the "Clone" option
Standard custom channel
Attached the simple script to test
I can confirm the same problem even using perl script, so it's not limited to python:
my $HOST = 'localhost';
my $user = 'username';
my $pass = 'password';
my $client = new Frontier::Client(url => "http://$HOST/rpc/api");
my $session = $client->call('auth.login', $user, $pass);
my %newchannel = (
name => "testname",
label => "testlabel",
summary => "testsummary"
my $cid = $client->call( "channel.software.clone", $session, "rhel-i386-as-4", \%newchannel, $client->boolean(0) );
Changed bug subject, it's not limited to python.
I have found the cloning is actually being deprecated, so this is probably not a bug. Closing.