mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07: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:
parent
802fbcadf8
commit
95789f3949
132 changed files with 287 additions and 313 deletions
|
@ -69,7 +69,7 @@ class RoleMetadata(Base):
|
|||
if ds:
|
||||
if not isinstance(ds, list):
|
||||
raise AnsibleParserError("Expected role dependencies to be a list.", obj=self._ds)
|
||||
|
||||
|
||||
for role_def in ds:
|
||||
if isinstance(role_def, string_types) or 'role' in role_def or 'name' in role_def:
|
||||
roles.append(role_def)
|
||||
|
@ -86,7 +86,7 @@ class RoleMetadata(Base):
|
|||
current_role_path = None
|
||||
if self._owner:
|
||||
current_role_path = os.path.dirname(self._owner._role_path)
|
||||
|
||||
|
||||
try:
|
||||
return load_list_of_roles(roles, play=self._owner._play, current_role_path=current_role_path, variable_manager=self._variable_manager, loader=self._loader)
|
||||
except AssertionError:
|
||||
|
|
|
@ -108,7 +108,7 @@ class IncludeRole(Task):
|
|||
# build options for role includes
|
||||
for key in ['tasks', 'vars', 'defaults']:
|
||||
from_key ='%s_from' % key
|
||||
if ir.args.get(from_key):
|
||||
if ir.args.get(from_key):
|
||||
ir._from_files[key] = basename(ir.args.get(from_key))
|
||||
|
||||
#FIXME: find a way to make this list come from object ( attributes does not work as per below)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue