client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 3dab836b0f7f4da095daec5c9618dd52f635dacd
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Oct 30 22:14:48 2009 +0100
532145 - define local variable ipaddr before it is used
addressing:
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/rhnregGui.py", line 949, in
populateProfile
if ipaddr:
exceptions.UnboundLocalError: local variable ipaddr referenced before
assignment
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
index 00987a5..a9b6d8e 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
@@ -932,6 +932,7 @@ class CreateProfilePage:
if not self.initProfile:
profileName = None
hostname = None
+ ipaddr = None
if self.hardware:
for hw in self.hardware:
if hw.has_key('class'):
Show replies by date