mirror of https://github.com/ansible/ansible.git
template/__init__.py - fix KeyError when wantlist=False with non-list
parent
5e50284693
commit
c9ce7d08a2
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- lookup plugin - catch KeyError when lookup returns dictionary (https://github.com/ansible/ansible/pull/77789).
|
@ -0,0 +1,6 @@
|
|||||||
|
from ansible.plugins.lookup import LookupBase
|
||||||
|
|
||||||
|
|
||||||
|
class LookupModule(LookupBase):
|
||||||
|
def run(self, terms, variables, **kwargs):
|
||||||
|
return {'one': 1, 'two': 2}
|
Loading…
Reference in New Issue