mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Add warning comment to rhn_register module about fixing pep8 errors
This commit is contained in:
parent
1d24bcc916
commit
9727a4415c
1 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,8 @@ 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
|
||||||
|
# setting this to use 'in' does not work in the rhn library
|
||||||
if self.has_key(key):
|
if self.has_key(key):
|
||||||
return self[key]
|
return self[key]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue