mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 09:43:15 +00:00
Styling: deprecation
This commit is contained in:
@@ -172,7 +172,7 @@ class Rhn(RegistrationBase):
|
||||
# configuration. Yeah, I know this should be subclassed ... but, oh
|
||||
# well
|
||||
def get_option_default(self, key, default=''):
|
||||
if self.has_key(key):
|
||||
if 'key' in self:
|
||||
return self[key]
|
||||
else:
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user