mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Merge pull request #17622 from privateip/network-plugin-fix
fixes AttributeError: 'Task' object has no attribute '_block'
This commit is contained in:
commit
6826ed3879
2 changed files with 10 additions and 8 deletions
|
@ -108,6 +108,7 @@ class ActionModule(ActionBase):
|
||||||
searchpath = [working_path]
|
searchpath = [working_path]
|
||||||
if self._task._role is not None:
|
if self._task._role is not None:
|
||||||
searchpath.append(self._task._role._role_path)
|
searchpath.append(self._task._role._role_path)
|
||||||
|
if hasattr(self._task, "_block:"):
|
||||||
dep_chain = self._task._block.get_dep_chain()
|
dep_chain = self._task._block.get_dep_chain()
|
||||||
if dep_chain is not None:
|
if dep_chain is not None:
|
||||||
for role in dep_chain:
|
for role in dep_chain:
|
||||||
|
|
|
@ -101,6 +101,7 @@ class ActionModule(ActionBase):
|
||||||
searchpath = [working_path]
|
searchpath = [working_path]
|
||||||
if self._task._role is not None:
|
if self._task._role is not None:
|
||||||
searchpath.append(self._task._role._role_path)
|
searchpath.append(self._task._role._role_path)
|
||||||
|
if hasattr(self._task, "_block:"):
|
||||||
dep_chain = self._task._block.get_dep_chain()
|
dep_chain = self._task._block.get_dep_chain()
|
||||||
if dep_chain is not None:
|
if dep_chain is not None:
|
||||||
for role in dep_chain:
|
for role in dep_chain:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue