Bug 671052 - Missing module import in rhn-channel
Summary: Missing module import in rhn-channel
Keywords:
Status: CLOSED DUPLICATE of bug 651857
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 04:17 UTC by Mathieu Bridon
Modified: 2011-01-20 09:16 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-20 09:16:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mathieu Bridon 2011-01-20 04:17:12 UTC
Description of problem:
# rhn-channel -c foobar
Username: 
Password: 

Traceback (most recent call last):
  File "/usr/sbin/rhn-channel", line 98, in <module>
    main()
  File "/usr/sbin/rhn-channel", line 92, in main
    s = rhnserver.RhnServer()
NameError: global name 'rhnserver' is not defined


Version-Release number of selected component (if applicable):
rhn-setup-1.0.0-39.el6.noarch

How reproducible:
Always


The following fixes the issue:
# diff spacewalk-channel{,.fixed}
42c42
< from up2date_client import up2dateAuth, config, up2dateErrors
---
> from up2date_client import up2dateAuth, config, up2dateErrors, rhnserver

And then I get the error message saying I forgot the --add option, which is the expected behavior.

Comment 2 Milan Zázrivec 2011-01-20 09:16:21 UTC
The described problem will be fixed in RHEL-6.1

*** This bug has been marked as a duplicate of bug 651857 ***


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