summaryrefslogtreecommitdiff
path: root/lib/ansible/utils
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2022-07-12 16:10:32 -0400
committerGitHub <noreply@github.com>2022-07-12 16:10:32 -0400
commit1f59bbf4f39504c8f2087f8132f2475a6ac38dcb (patch)
tree3f459e5775ce82b2cde0c866bab8389b5146bfbb /lib/ansible/utils
parent3658c26ad41ec70bebc7e70f3c1adb2ce0aa1f72 (diff)
downloadansible-1f59bbf4f39504c8f2087f8132f2475a6ac38dcb.tar.gz
listify_lookup_plugin_terms deprecate dataloader (#78244)
* listify_lookup_plugin_terms deprecate dataloader deprecated useless dataloader pass to function also removed from callers in core Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Diffstat (limited to 'lib/ansible/utils')
-rw-r--r--lib/ansible/utils/listify.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ansible/utils/listify.py b/lib/ansible/utils/listify.py
index 4f2ae9d446..0e6a872491 100644
--- a/lib/ansible/utils/listify.py
+++ b/lib/ansible/utils/listify.py
@@ -22,12 +22,18 @@ __metaclass__ = type
from collections.abc import Iterable
from ansible.module_utils.six import string_types
+from ansible.utils.display import Display
+display = Display()
__all__ = ['listify_lookup_plugin_terms']
-def listify_lookup_plugin_terms(terms, templar, loader, fail_on_undefined=True, convert_bare=False):
+def listify_lookup_plugin_terms(terms, templar, loader=None, fail_on_undefined=True, convert_bare=False):
+
+ if loader is not None:
+ display.deprecated('"listify_lookup_plugin_terms" does not use "dataloader" anymore, the ability to pass it in will be removed in future versions.',
+ version='2.18')
if isinstance(terms, string_types):
terms = templar.template(terms.strip(), convert_bare=convert_bare, fail_on_undefined=fail_on_undefined)