Bug 577242 - subscription-manager-cli: python traceback upon registration
Summary: subscription-manager-cli: python traceback upon registration
Keywords:
Status: CLOSED DUPLICATE of bug 577140
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-26 14:46 UTC by Steve Salevan
Modified: 2015-05-14 15:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-26 14:48:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Salevan 2010-03-26 14:46:44 UTC
Description of problem:
If a user runs the following call, they will receive the following traceback:

[root@oldceremony i386]# subscription-manager-cli register --username=<username> --password=<password>
1a918422-32f2-4914-9da7-4fb91526f2eb admin <username>
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager-cli", line 69, in <module>
    sys.exit(abs(main() or 0))
  File "/usr/sbin/subscription-manager-cli", line 60, in main
    return managercli.CLI().main()
  File "/usr/share/rhsm/managercli.py", line 345, in main
    cmd.main()
  File "/usr/share/rhsm/managercli.py", line 70, in main
    self._do_command()
  File "/usr/share/rhsm/managercli.py", line 126, in _do_command
    self.certlib.update()
  File "/usr/share/rhsm/certlib.py", line 42, in update
    return update.perform()
  File "/usr/share/rhsm/certlib.py", line 116, in perform
    expected = uep.getCertificateSerials()
  File "/usr/share/rhsm/certlib.py", line 205, in getCertificateSerials
    reply = reply['serials']
TypeError: list indices must be integers, not str

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

How reproducible:
Always

Steps to Reproduce:
1. Install the latest subscription-manager
2. Run subscription-manager-cli register --username=<username> --password=<password>, replacing these with values appropriate for your chosen Candlepin environment
  
Actual results:
As above

Expected results:
Registration succeeds

Additional info:

Comment 1 Pradeep Kilambi 2010-03-26 14:48:04 UTC

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

Comment 2 Jeff Weiss 2010-10-14 20:00:17 UTC
This bug was legitimately closed, just double checking since Steve is gone.


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