Fix case sensitivity for lookup() (#66521)
This brings consistency to lookup(), with_ and ansible-doc. Fixes #66464 * Add a porting guide entry
This commit is contained in:
parent
3ce6440515
commit
4ca0c7f116
3 changed files with 7 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- Fix case sensitivity for ``lookup()`` (https://github.com/ansible/ansible/issues/66464)
|
|
@ -110,6 +110,10 @@ Noteworthy module changes
|
|||
Plugins
|
||||
=======
|
||||
|
||||
Lookup plugin names case-sensitivity
|
||||
------------------------------------
|
||||
|
||||
* Prior to Ansible ``2.10`` lookup plugin names passed in as an argument to the ``lookup()`` function were treated as case-insensitive as opposed to lookups invoked via ``with_<lookup_name>``. ``2.10`` brings consistency to ``lookup()`` and ``with_`` to be both case-sensitive.
|
||||
|
||||
Noteworthy plugin changes
|
||||
-------------------------
|
||||
|
|
|
@ -749,7 +749,7 @@ class Templar:
|
|||
return self._lookup(name, *args, **kwargs)
|
||||
|
||||
def _lookup(self, name, *args, **kwargs):
|
||||
instance = self._lookup_loader.get(name.lower(), loader=self._loader, templar=self)
|
||||
instance = self._lookup_loader.get(name, loader=self._loader, templar=self)
|
||||
|
||||
if instance is not None:
|
||||
wantlist = kwargs.pop('wantlist', False)
|
||||
|
|
Loading…
Reference in a new issue