mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3332 from jlaska/rhn_register_cfgfile_fix
rhn_register - Correctly load up2date configuration
This commit is contained in:
commit
6304b7e793
1 changed files with 4 additions and 4 deletions
|
@ -158,15 +158,15 @@ class RegistrationBase (object):
|
||||||
|
|
||||||
class Rhn(RegistrationBase):
|
class Rhn(RegistrationBase):
|
||||||
|
|
||||||
def __init__(self, username=None, password=None, filename=None):
|
def __init__(self, username=None, password=None):
|
||||||
RegistrationBase.__init__(self, username, password)
|
RegistrationBase.__init__(self, username, password)
|
||||||
self.config = self._read_config(filename)
|
self.config = self.load_config()
|
||||||
|
|
||||||
def _read_config(self, filename=None):
|
def load_config(self):
|
||||||
'''
|
'''
|
||||||
Read configuration from /etc/sysconfig/rhn/up2date
|
Read configuration from /etc/sysconfig/rhn/up2date
|
||||||
'''
|
'''
|
||||||
self.config = up2date_client.config.initUp2dateConfig(filename)
|
self.config = up2date_client.config.initUp2dateConfig()
|
||||||
|
|
||||||
# Add support for specifying a default value w/o having to standup some
|
# Add support for specifying a default value w/o having to standup some
|
||||||
# configuration. Yeah, I know this should be subclassed ... but, oh
|
# configuration. Yeah, I know this should be subclassed ... but, oh
|
||||||
|
|
Loading…
Reference in a new issue