1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
patchback[bot] 2023-05-29 21:36:34 +02:00 committed by GitHub
parent e55df1c63e
commit dd726d28ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- sorcery - minor refactor (https://github.com/ansible-collections/community.general/pull/6525).

View file

@ -165,6 +165,8 @@ import re
import shutil import shutil
import sys import sys
from ansible.module_utils.basic import AnsibleModule
# auto-filled at module init # auto-filled at module init
SORCERY = { SORCERY = {
@ -646,8 +648,5 @@ def main():
manage_spells(module) manage_spells(module)
# import module snippets
from ansible.module_utils.basic import AnsibleModule
if __name__ == '__main__': if __name__ == '__main__':
main() main()