Stop using ansible.module_utils.compat.importlib (#9085)
Stop using ansible.module_utils.compat.importlib.pull/9094/head
parent
e63c2f54cf
commit
9553dd9ddf
|
@ -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 json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
from importlib import import_module
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from ansible.errors import AnsibleLookupError
|
from ansible.errors import AnsibleLookupError
|
||||||
from ansible.module_utils.compat.importlib import import_module
|
|
||||||
from ansible.plugins.lookup import LookupBase
|
from ansible.plugins.lookup import LookupBase
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue