mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-05 10:10:31 -07:00
mh base: add verbosity() property (#5035)
* mh base: add verbosity property * add changelog fragment
This commit is contained in:
parent
3eb29eb4b6
commit
aba089369e
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):
|
def diff_mode(self):
|
||||||
return self.module._diff
|
return self.module._diff
|
||||||
|
|
||||||
|
@property
|
||||||
|
def verbosity(self):
|
||||||
|
return self.module._verbosity
|
||||||
|
|
||||||
def do_raise(self, *args, **kwargs):
|
def do_raise(self, *args, **kwargs):
|
||||||
raise _MHE(*args, **kwargs)
|
raise _MHE(*args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue