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

[PR #5773/02431341 backport][stable-6] snap: use MH execute() static method (#5774)

snap: use MH execute() static method (#5773)

* use MH execute() static method

* add changelog fragment

(cherry picked from commit 02431341b7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2023-01-07 10:52:22 +01:00 committed by GitHub
parent c8b8668212
commit 5cf7ce705a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- snap - minor refactor when executing module (https://github.com/ansible-collections/community.general/pull/5773).

View file

@ -399,8 +399,7 @@ class Snap(CmdStateModuleHelper):
def main(): def main():
snap = Snap() Snap.execute()
snap.run()
if __name__ == '__main__': if __name__ == '__main__':