Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1189291

Summary: spacecmd system_setconfigchannelorder fails with ERROR: 'list' object is not callable
Product: [Community] Spacewalk Reporter: Tommy McNeely <TommyTheKid>
Component: ClientsAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.2CC: eherget
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: spacecmd-2.7.6-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1428831 (view as bug list) Environment:
Last Closed: 2017-09-27 18:59:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1428831, 1484117    

Description Tommy McNeely 2015-02-04 22:00:19 UTC
Description of problem:
spacecmd system_setconfigchannelorder <servername>
#(interaction omitted)
a[dd], r[emove], c[lear], d[one]: d
New Configuration Channels
--------------------------
ERROR: 'list' object is not callable


Version-Release number of selected component (if applicable):
Found in production on spacecmd-2.2.11-1.el6.noarch
Verified in nightly (2015-02-04): spacecmd-2.3.14-1.el6.noarch

How reproducible:
ALWAYS


Steps to Reproduce:
1. spacecmd system_setconfigchannelorder <systemname>
2. type "d" <enter> for done
3. See the error :)

Actual results:

a[dd], r[emove], c[lear], d[one]: d

New Configuration Channels
--------------------------
ERROR: 'list' object is not callable

(and the new list is not saved, in the case where you actually change the order)


Expected results:
No error, new channel list saved.


Additional info:
We use this command via a shell script to sort our configuration channels, otherwise I can't comprehend anyone actually interacting with this.


The error appears to be at:
https://git.fedorahosted.org/cgit/spacewalk.git/tree/spacecmd/src/lib/system.py#n1401
(as of today)


    print
    print 'New Configuration Channels'
    print '--------------------------'
    for i, new_channel in new_channels(new_channels, 1):
        print '[%i] %s' % (i, new_channel)

Comment 1 Tommy McNeely 2015-02-04 22:04:44 UTC
# Workaround:

Comment out the "for" loop (for line and the line below it). It won't print the new channel list, but it was just emitted above before pressing "d" for done, so its not like it really needs to be printed again.

This is at like 1441 for spacecmd-2.2.11-1.el6.noarch

Comment 2 Tomáš Kašpárek 2017-03-03 12:48:38 UTC
spacewalk.git(master): 11394cc4a8d01aaec725a55c69e8a595400db12c

Comment 3 Eric Herget 2017-09-27 18:59:38 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27