diff options
-rw-r--r-- | sos/policies/redhat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index 9decd0a7..44cc5ff6 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -183,9 +183,9 @@ No changes will be made to system configuration. def rhn_username(self): try: # cfg = config.initUp2dateConfig() - - return rpclib.xmlrpclib.loads( + rhn_username = rpclib.xmlrpclib.loads( up2dateAuth.getSystemId())[0][0]['username'] + return rhn_username.encode('utf-8', 'ignore') except: # ignore any exception and return an empty username return "" |