[PR #9085/9553dd9d backport][stable-8] Stop using ansible.module_utils.compat.importlib (#9088)
Stop using ansible.module_utils.compat.importlib (#9085)
Stop using ansible.module_utils.compat.importlib.
(cherry picked from commit 9553dd9ddf
)
Co-authored-by: Felix Fontein <felix@fontein.de>
pull/9146/head
parent
d96705d55a
commit
f0bcb7f477
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "collection_version lookup plugin - use ``importlib`` directly instead of the deprecated and in ansible-core 2.19 removed ``ansible.module_utils.compat.importlib`` (https://github.com/ansible-collections/community.general/pull/9084)."
|
|
@ -63,11 +63,11 @@ RETURN = """
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
from importlib import import_module
|
||||
|
||||
import yaml
|
||||
|
||||
from ansible.errors import AnsibleLookupError
|
||||
from ansible.module_utils.compat.importlib import import_module
|
||||
from ansible.plugins.lookup import LookupBase
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue