mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
[PR #9179/a3bd49c0 backport][stable-10] deps module utils: unit tests + minor improvement (#9182)
deps module utils: unit tests + minor improvement (#9179)
* deps module utils: unit tests + minor improvement
* deps.clear() calls dict.clear() instead of creating new dict
* add changelog frag
(cherry picked from commit a3bd49c010
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5fe39082d5
commit
0b64fc1ee4
5 changed files with 81 additions and 1 deletions
|
@ -96,3 +96,7 @@ def validate(module, spec=None):
|
|||
|
||||
def failed(spec=None):
|
||||
return any(_deps[d].failed for d in _select_names(spec))
|
||||
|
||||
|
||||
def clear():
|
||||
_deps.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue