Bug 656895

Summary: rhncfg-client - 'module' object has no attribute 'startswith'
Product: [Community] Spacewalk Reporter: Marcus Moeller <marcus.moeller>
Component: ServerAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 1.2CC: baptiste.agasse, christoph.maser, jpazdziora, jsherril, public.bug.report
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhncfg-5.9.35-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-08 08:40:54 UTC Type: ---
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: 653453    

Description Marcus Moeller 2010-11-24 13:53:58 UTC
Description of problem:

While running 'rhncfg-client $command', e.g. rhncfg-client list the following error message is generated:

Traceback (most recent call last):
  File "/usr/bin/rhncfg-client", line 34, in <module>
    sys.exit(Main().main() or 0)
  File "/usr/share/rhn/config_common/rhn_main.py", line 67, in main
    if utils.startswith(arg, server_name_opt):
AttributeError: 'module' object has no attribute 'startswith'

Comment 1 Jan Pazdziora (Red Hat) 2010-11-26 13:31:38 UTC
Confirming with:

# rpm -qf /usr/share/rhn/config_common/rhn_main.py
rhncfg-5.9.33-1.el5

Comment 2 Jan Pazdziora (Red Hat) 2010-11-26 13:34:12 UTC
Taking.

Comment 3 Jan Pazdziora (Red Hat) 2010-11-26 13:36:29 UTC
Fixed in Spacewalk master, b997f9e780120fbeae92defbc427b7103ba5b141.

Comment 4 Jan Pazdziora (Red Hat) 2010-11-26 15:51:36 UTC
Tagged as rhncfg-5.9.35-1.

Comment 5 Justin Sherrill 2010-12-07 16:24:50 UTC
Jan,  

Spacewalk users are asking to have this backported to 1.2, can we make this happen? :}

Thanks,

-Justin

Comment 6 Marcus Moeller 2011-02-01 16:03:41 UTC
pleeaasse :?

Comment 7 Tomas Lestach 2011-02-03 12:21:12 UTC
Moving ON_QA ...

Comment 8 Tomas Lestach 2011-02-08 08:40:54 UTC
This bug has been fixed in Spacewalk 1.3.