|
|
@ -33,8 +33,8 @@ class LookupModule(LookupBase):
|
|
|
|
raise errors.AnsibleError(
|
|
|
|
raise errors.AnsibleError(
|
|
|
|
"subelements lookup expects a list of two or three items, "
|
|
|
|
"subelements lookup expects a list of two or three items, "
|
|
|
|
+ msg)
|
|
|
|
+ msg)
|
|
|
|
terms = listify_lookup_plugin_terms(terms, self.basedir, inject)
|
|
|
|
terms = listify_lookup_plugin_terms(terms, variables, loader=self._loader)
|
|
|
|
terms[0] = listify_lookup_plugin_terms(terms[0], self.basedir, inject)
|
|
|
|
terms[0] = listify_lookup_plugin_terms(terms[0], variables, loader=self._loader)
|
|
|
|
|
|
|
|
|
|
|
|
# check lookup terms - check number of terms
|
|
|
|
# check lookup terms - check number of terms
|
|
|
|
if not isinstance(terms, list) or not 2 <= len(terms) <= 3:
|
|
|
|
if not isinstance(terms, list) or not 2 <= len(terms) <= 3:
|
|
|
|