mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 07:54:00 -07:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
parent
1609afbd12
commit
cb76200c7d
119 changed files with 339 additions and 378 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue