diff --git a/changelogs/fragments/6525-sorcery-import.yaml b/changelogs/fragments/6525-sorcery-import.yaml new file mode 100644 index 0000000000..efc170cd74 --- /dev/null +++ b/changelogs/fragments/6525-sorcery-import.yaml @@ -0,0 +1,2 @@ +minor_changes: + - sorcery - minor refactor (https://github.com/ansible-collections/community.general/pull/6525). diff --git a/plugins/modules/sorcery.py b/plugins/modules/sorcery.py index 3278ce0abd..538d91de11 100644 --- a/plugins/modules/sorcery.py +++ b/plugins/modules/sorcery.py @@ -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()