diff --git a/changelogs/fragments/5035-mh-base-verbosity.yaml b/changelogs/fragments/5035-mh-base-verbosity.yaml new file mode 100644 index 0000000000..e6ea5a9198 --- /dev/null +++ b/changelogs/fragments/5035-mh-base-verbosity.yaml @@ -0,0 +1,2 @@ +minor_changes: + - ModuleHelper module utils - added property ``verbosity`` to base class (https://github.com/ansible-collections/community.general/pull/5035). diff --git a/plugins/module_utils/mh/base.py b/plugins/module_utils/mh/base.py index cad1a9acdc..dec81a4c12 100644 --- a/plugins/module_utils/mh/base.py +++ b/plugins/module_utils/mh/base.py @@ -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)