mirror of https://github.com/ansible/ansible.git
template/__init__.py - fix KeyError when wantlist=False with non-list (#77824)
(cherry picked from commit c9ce7d08a2
)
pull/78006/head
parent
9796d055b9
commit
e5e3bc849d
@ -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