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. :(
Aligning under space16.
Correct. urlparse.SplitResult is available since Python 2.5. The issue was fixed as part of Bug 713548
Spacewalk 1.6 has been released.