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:
parent
e55df1c63e
commit
dd726d28ca
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 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()
|
||||||
|
|
Loading…
Reference in a new issue