|
|
@ -161,9 +161,10 @@ class Rhn(RegistrationBase):
|
|
|
|
# configuration. Yeah, I know this should be subclassed ... but, oh
|
|
|
|
# configuration. Yeah, I know this should be subclassed ... but, oh
|
|
|
|
# well
|
|
|
|
# well
|
|
|
|
def get_option_default(self, key, default=''):
|
|
|
|
def get_option_default(self, key, default=''):
|
|
|
|
# ignore pep8 W601 errors for this line
|
|
|
|
# the class in rhn-client-tools that this comes from didn't
|
|
|
|
# setting this to use 'in' does not work in the rhn library
|
|
|
|
# implement __contains__(). That's why we check if the key is
|
|
|
|
if key in self:
|
|
|
|
# present in the dictionary that is the actual storage
|
|
|
|
|
|
|
|
if key in self.dict:
|
|
|
|
return self[key]
|
|
|
|
return self[key]
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return default
|
|
|
|
return default
|
|
|
|