mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
[PR #6525/4c0eff02 backport][stable-7] sorcery: moved import to top (#6595)
sorcery: moved import to top (#6525)
* sorcery: moved import to top
* add changelog frag
* Update changelogs/fragments/6525-sorcery-import.yaml
Co-authored-by: Vlad Glagolev <vaygr@users.noreply.github.com>
---------
Co-authored-by: Vlad Glagolev <vaygr@users.noreply.github.com>
(cherry picked from commit 4c0eff02e5)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
2
changelogs/fragments/6525-sorcery-import.yaml
Normal file
2
changelogs/fragments/6525-sorcery-import.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- sorcery - minor refactor (https://github.com/ansible-collections/community.general/pull/6525).
|
||||
@@ -165,6 +165,8 @@ import re
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
||||
# auto-filled at module init
|
||||
SORCERY = {
|
||||
@@ -646,8 +648,5 @@ def main():
|
||||
manage_spells(module)
|
||||
|
||||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user