1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Styling: deprecation

This commit is contained in:
Michael DeHaan 2013-06-30 18:55:45 -04:00
parent 2e63faf257
commit ecc2b6e742

View file

@ -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