diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2020-01-27 21:09:45 +0100 |
---|---|---|
committer | Sam Doran <sdoran@redhat.com> | 2020-01-27 15:09:45 -0500 |
commit | 4ca0c7f11676f62ba5298abf2e506f1e953767da (patch) | |
tree | 02dc095df5ee6da3e88e7e277baccc5e8e5192a5 /lib/ansible/template | |
parent | 3ce644051543d5750b1eb03bf92556e5f243bea2 (diff) | |
download | ansible-4ca0c7f11676f62ba5298abf2e506f1e953767da.tar.gz |
Fix case sensitivity for lookup() (#66521)
This brings consistency to lookup(), with_ and ansible-doc.
Fixes #66464
* Add a porting guide entry
Diffstat (limited to 'lib/ansible/template')
-rw-r--r-- | lib/ansible/template/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 062c4d6889..7cea02bc77 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -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) |