Bug 1189291 - spacecmd system_setconfigchannelorder fails with ERROR: 'list' object is not callable
Summary: spacecmd system_setconfigchannelorder fails with ERROR: 'list' object is not ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1428831 space27
TreeView+ depends on / blocked
 
Reported: 2015-02-04 22:00 UTC by Tommy McNeely
Modified: 2017-09-27 18:59 UTC (History)
1 user (show)

Fixed In Version: spacecmd-2.7.6-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1428831 (view as bug list)
Environment:
Last Closed: 2017-09-27 18:59:38 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.