mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +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:
@@ -51,7 +51,7 @@ class ActionModule(ActionBase):
|
||||
if module == 'auto':
|
||||
facts = self._execute_module(module_name='setup', module_args=dict(filter='ansible_pkg_mgr', gather_subset='!all'), task_vars=task_vars)
|
||||
display.debug("Facts %s" % facts)
|
||||
if 'ansible_facts' in facts and 'ansible_pkg_mgr' in facts['ansible_facts']:
|
||||
if 'ansible_facts' in facts and 'ansible_pkg_mgr' in facts['ansible_facts']:
|
||||
module = getattr(facts['ansible_facts'], 'ansible_pkg_mgr', 'auto')
|
||||
|
||||
if module != 'auto':
|
||||
|
||||
@@ -50,7 +50,7 @@ class ActionModule(ActionBase):
|
||||
if module == 'auto':
|
||||
facts = self._execute_module(module_name='setup', module_args=dict(gather_subset='!all', filter='ansible_service_mgr'), task_vars=task_vars)
|
||||
self._display.debug("Facts %s" % facts)
|
||||
if 'ansible_facts' in facts and 'ansible_service_mgr' in facts['ansible_facts']:
|
||||
if 'ansible_facts' in facts and 'ansible_service_mgr' in facts['ansible_facts']:
|
||||
module = facts['ansible_facts']['ansible_service_mgr']
|
||||
|
||||
if not module or module == 'auto' or module not in self._shared_loader_obj.module_loader:
|
||||
|
||||
Reference in New Issue
Block a user