mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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>
This commit is contained in:
parent
486f6553f5
commit
4c0eff02e5
2 changed files with 4 additions and 3 deletions
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()
|
||||
|
|
Loading…
Reference in a new issue