diff --git a/library/packaging/rhn_register b/library/packaging/rhn_register index ae01607748c..87e0ef78f1e 100644 --- a/library/packaging/rhn_register +++ b/library/packaging/rhn_register @@ -181,7 +181,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):