1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

mh base: add verbosity() property (#5035)

* mh base: add verbosity property

* add changelog fragment
This commit is contained in:
Alexei Znamensky 2022-07-31 21:28:17 +12:00 committed by GitHub
parent 3eb29eb4b6
commit aba089369e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View 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).

View file

@ -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)