module_helper - implemented classmethod to start the module (#3206)

* module_helper - implemented classmethod to start the module plus minor change

* rolled back the __changed__() method

* added changelog fragment

* Update plugins/module_utils/mh/base.py

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* no capt Piccards allowed in the base class

* removed extra piccards

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
Alexei Znamensky 2021-08-17 20:43:18 +12:00 committed by GitHub
parent f19e191467
commit 41101e55a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -248,8 +248,7 @@ class CPANMinus(CmdMixin, ModuleHelper):
def main():
cpanm = CPANMinus()
cpanm.run()
CPANMinus.execute()
if __name__ == '__main__':

View file

@ -277,8 +277,7 @@ class XFConfProperty(CmdMixin, StateMixin, ModuleHelper):
def main():
xfconf = XFConfProperty()
xfconf.run()
XFConfProperty.execute()
if __name__ == '__main__':