[PR #8766/c84fb557 backport][stable-9] MH deco: minor refactor (#8775)

MH deco: minor refactor (#8766)

* MH deco: minor refactor

* adjustments and improvement in test

* sanity fix

* use func.__self__

* simplify use of self

* add changelog frag

(cherry picked from commit c84fb5577b)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2024-08-17 18:12:16 +02:00
committed by GitHub
parent 2f62b6bbc6
commit 0c2642aa2e
3 changed files with 41 additions and 37 deletions

View File

@@ -0,0 +1,3 @@
minor_changes:
- MH module utils - add parameter ``when`` to ``cause_changes`` decorator (https://github.com/ansible-collections/community.general/pull/8766).
- MH module utils - minor refactor in decorators (https://github.com/ansible-collections/community.general/pull/8766).