Bug 719460 - spacewalk-channel --available-channels option throws AttributeError under Python 2.4.x
Summary: spacewalk-channel --available-channels option throws AttributeError under Pyt...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-07-06 23:37 UTC by Reed Loden
Modified: 2011-12-22 16:51 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-12-22 16:51:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Reed Loden 2011-07-06 23:37:06 UTC
spacewalk-channel throws an AttributeError when the --available-channels (also known as -L) is used.

# spacewalk-channel --available-channels
Username: 
Password: 
Traceback (most recent call last):
  File "/usr/sbin/spacewalk-channel", line 145, in ?
    main()
  File "/usr/sbin/spacewalk-channel", line 137, in main
    channels = get_available_channels(OPTIONS.user, OPTIONS.password)
  File "/usr/sbin/spacewalk-channel", line 90, in get_available_channels
    satellite_url = urlparse.SplitResult(parts.scheme, parts.netloc, '/rpc/api',
AttributeError: 'module' object has no attribute 'SplitResult'

Line 90:
    satellite_url = urlparse.SplitResult(parts.scheme, parts.netloc, '/rpc/api',
        parts.query, parts.fragment).geturl()

Version-Release number of selected component (if applicable):

# rpm -q rhn-client-tools
rhn-client-tools-1.4.16-1.el5

Additional info:

On CentOS 5.6 with Python 2.4.3.

ParseResult.geturl() wasn't added until Python 2.5.x. Sadly, CentOS 5 / RHEL5 ship with Python 2.4.x. :(

Comment 1 Jan Pazdziora (Red Hat) 2011-07-20 11:53:15 UTC
Aligning under space16.

Comment 2 Tomas Lestach 2011-07-25 16:42:02 UTC
Correct. urlparse.SplitResult is available since Python 2.5.

The issue was fixed as part of Bug 713548

Comment 3 Milan Zázrivec 2011-12-22 16:51:30 UTC
Spacewalk 1.6 has been released.


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