mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* mh base: add verbosity property
* add changelog fragment
(cherry picked from commit aba089369e
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
3020b305bb
commit
258471b267
2 changed files with 6 additions and 0 deletions
2
changelogs/fragments/5035-mh-base-verbosity.yaml
Normal file
2
changelogs/fragments/5035-mh-base-verbosity.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- ModuleHelper module utils - added property ``verbosity`` to base class (https://github.com/ansible-collections/community.general/pull/5035).
|
|
@ -31,6 +31,10 @@ class ModuleHelperBase(object):
|
|||
def diff_mode(self):
|
||||
return self.module._diff
|
||||
|
||||
@property
|
||||
def verbosity(self):
|
||||
return self.module._verbosity
|
||||
|
||||
def do_raise(self, *args, **kwargs):
|
||||
raise _MHE(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue