mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 08:24:02 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -33,8 +33,7 @@ class LookupModule(LookupBase):
|
|||
|
||||
def _raise_terms_error(msg=""):
|
||||
raise AnsibleError(
|
||||
"subelements lookup expects a list of two or three items, "
|
||||
+ msg)
|
||||
"subelements lookup expects a list of two or three items, " + msg)
|
||||
|
||||
terms[0] = listify_lookup_plugin_terms(terms[0], templar=self._templar, loader=self._loader)
|
||||
|
||||
|
@ -80,7 +79,7 @@ class LookupModule(LookupBase):
|
|||
for subkey in subelements:
|
||||
if subkey == subelements[-1]:
|
||||
lastsubkey = True
|
||||
if not subkey in subvalue:
|
||||
if subkey not in subvalue:
|
||||
if skip_missing:
|
||||
continue
|
||||
else:
|
||||
|
@ -102,4 +101,3 @@ class LookupModule(LookupBase):
|
|||
ret.append((item0, item1))
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue