mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
@@ -452,9 +452,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||
if mystat.get('failed'):
|
||||
msg = mystat.get('module_stderr')
|
||||
if not msg:
|
||||
msg = mystat.get('module_stdout')
|
||||
msg = mystat.get('module_stdout')
|
||||
if not msg:
|
||||
msg = mystat.get('msg')
|
||||
msg = mystat.get('msg')
|
||||
raise AnsibleError('Failed to get information on remote file (%s): %s' % (path, msg))
|
||||
|
||||
if not mystat['stat']['exists']:
|
||||
|
||||
@@ -70,11 +70,11 @@ class ActionModule(ActionBase):
|
||||
new_groups = []
|
||||
if groups:
|
||||
if isinstance(groups, list):
|
||||
group_list = groups
|
||||
group_list = groups
|
||||
elif isinstance(groups, string_types):
|
||||
group_list = groups.split(",")
|
||||
group_list = groups.split(",")
|
||||
else:
|
||||
raise AnsibleError("Groups must be specfied as a list.", obj=self._task)
|
||||
raise AnsibleError("Groups must be specfied as a list.", obj=self._task)
|
||||
|
||||
for group_name in group_list:
|
||||
if group_name not in new_groups:
|
||||
|
||||
Reference in New Issue
Block a user