mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Styling: misc pep8
This commit is contained in:
parent
bc7de7bf3f
commit
257d827c9e
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,7 @@ class Rhsm(RegistrationBase):
|
||||||
|
|
||||||
args = ['subscription-manager', 'identity']
|
args = ['subscription-manager', 'identity']
|
||||||
try:
|
try:
|
||||||
(stdout, stderr, retcode) = run_command(args)
|
(stdout, stderr, retcode) = run_command(args)
|
||||||
except CommandException, e:
|
except CommandException, e:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
@ -283,11 +283,14 @@ class RhsmPool(object):
|
||||||
'''
|
'''
|
||||||
Convenience class for housing subscription information
|
Convenience class for housing subscription information
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
for k,v in kwargs.items():
|
for k,v in kwargs.items():
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.__getattribute__('_name'))
|
return str(self.__getattribute__('_name'))
|
||||||
|
|
||||||
def subscribe(self):
|
def subscribe(self):
|
||||||
(stdout, stderr, retcode) = run_command("subscription-manager subscribe --pool %s" % self.PoolId)
|
(stdout, stderr, retcode) = run_command("subscription-manager subscribe --pool %s" % self.PoolId)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue