Bug 706285 - traceback in Subscription Assistant dialog
Summary: traceback in Subscription Assistant dialog
Keywords:
Status: CLOSED DUPLICATE of bug 705445
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 675214
TreeView+ depends on / blocked
 
Reported: 2011-05-19 22:25 UTC by John Sefler
Modified: 2011-05-20 13:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-20 13:17:43 UTC
Target Upstream Version:


Attachments (Terms of Use)
traceback from Subscription Assistant (125.21 KB, image/png)
2011-05-19 22:25 UTC, John Sefler
no flags Details

Description John Sefler 2011-05-19 22:25:03 UTC
Created attachment 499961 [details]
traceback from Subscription Assistant

Description of problem:

Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 387, in _on_invalid_active_toggled
    self._display_subscriptions()
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 343, in _display_subscriptions
    available = "%s of %s" % \
UnboundLocalError: local variable 'available' referenced before assignment


Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.95.5.18-1.el5
subscription-manager-0.95.5.18-1.el5
subscription-manager-gnome-0.95.5.18-1.el5


How reproducible:


Steps to Reproduce:
1. deploy an onpremises candlepin server with TESTDATA=1
2. install an sm client and copy all of the generated product certs from the onpremises server to the client's /etc/pki/product dir

[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --password=password
f68a84b3-f3ea-43c1-bcde-5f718b2feaaa jsefler-onprem-5server.usersys.redhat.com
[root@jsefler-onprem-5server ~]# subscription-manager-gui &

click Update Certificates
click the first Product (Management Bits)

BANG!

[root@jsefler-onprem-5server ~]# Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 387, in _on_invalid_active_toggled
    self._display_subscriptions()
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 343, in _display_subscriptions
    available = "%s of %s" % \
UnboundLocalError: local variable 'available' referenced before assignment

  
Actual results:


Expected results:


Additional info:

Comment 1 Adrian Likins 2011-05-20 13:17:43 UTC

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


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