mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
PEP 8 whitespace cleanup. (#20783)
* PEP 8 E271 whitespace cleanup. * PEP 8 W293 whitespace cleanup. * Fix whitespace issue from recent PR.
This commit is contained in:
@@ -333,7 +333,7 @@ class AzureRMModuleBase(object):
|
||||
def _get_credentials(self, params):
|
||||
# Get authentication credentials.
|
||||
# Precedence: module parameters-> environment variables-> default profile in ~/.azure/credentials.
|
||||
|
||||
|
||||
self.log('Getting credentials')
|
||||
|
||||
arg_credentials = dict()
|
||||
@@ -345,11 +345,11 @@ class AzureRMModuleBase(object):
|
||||
self.log('Retrieving credentials with profile parameter.')
|
||||
credentials = self._get_profile(arg_credentials['profile'])
|
||||
return credentials
|
||||
|
||||
|
||||
if arg_credentials['subscription_id']:
|
||||
self.log('Received credentials from parameters.')
|
||||
return arg_credentials
|
||||
|
||||
|
||||
# try environment
|
||||
env_credentials = self._get_env_credentials()
|
||||
if env_credentials:
|
||||
|
||||
@@ -368,7 +368,7 @@ class Facts(object):
|
||||
self.facts['service_mgr'] = proc_1_map.get(proc_1, proc_1)
|
||||
|
||||
# start with the easy ones
|
||||
elif self.facts['distribution'] == 'MacOSX':
|
||||
elif self.facts['distribution'] == 'MacOSX':
|
||||
#FIXME: find way to query executable, version matching is not ideal
|
||||
if LooseVersion(platform.mac_ver()[0]) >= LooseVersion('10.4'):
|
||||
self.facts['service_mgr'] = 'launchd'
|
||||
@@ -2155,7 +2155,7 @@ class AIX(Hardware):
|
||||
rc, out, err = self.module.run_command(cmd)
|
||||
if rc == 0 and out:
|
||||
pp_size = re.search(r'PP SIZE:\s+(\d+\s+\S+)',out).group(1)
|
||||
for n in re.finditer(r'(\S+)\s+(\w+)\s+(\d+)\s+(\d+).*',m.group(0)):
|
||||
for n in re.finditer(r'(\S+)\s+(\w+)\s+(\d+)\s+(\d+).*',m.group(0)):
|
||||
pv_info = { 'pv_name': n.group(1),
|
||||
'pv_state': n.group(2),
|
||||
'total_pps': n.group(3),
|
||||
|
||||
@@ -127,7 +127,7 @@ class Rhsm(RegistrationBase):
|
||||
for k,v in kwargs.items():
|
||||
if re.search(r'^(system|rhsm)_', k):
|
||||
args.append('--%s=%s' % (k.replace('_','.'), v))
|
||||
|
||||
|
||||
self.module.run_command(args, check_rc=True)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user