Skip to content

Commit

Permalink
mh base: add verbosity() property (#5035)
Browse files Browse the repository at this point in the history
* mh base: add verbosity property

* add changelog fragment
  • Loading branch information
russoz authored Jul 31, 2022
1 parent 3eb29eb commit aba0893
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/5035-mh-base-verbosity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- ModuleHelper module utils - added property ``verbosity`` to base class (https://github.com/ansible-collections/community.general/pull/5035).
4 changes: 4 additions & 0 deletions plugins/module_utils/mh/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def __init__(self, module=None):
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)

Expand Down

0 comments on commit aba0893

Please sign in to comment.