diff --git a/library/packaging/rhn_register b/library/packaging/rhn_register index 085c6922749..177f5b7d026 100644 --- a/library/packaging/rhn_register +++ b/library/packaging/rhn_register @@ -190,7 +190,7 @@ class Rhn(RegistrationBase): Returns: str ''' url = urlparse.urlparse(self.config['serverURL']) - return url.netloc.replace('xmlrpc.','') + return url[1].replace('xmlrpc.','') @property def systemid(self):