mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 00:01:08 +00:00
@@ -45,12 +45,8 @@ class LookupModule(object):
|
||||
def __lookup_injects(self, terms, inject):
|
||||
results = []
|
||||
for x in terms:
|
||||
if isinstance(x, basestring) and x in inject:
|
||||
results.append(inject[x])
|
||||
elif isinstance(x, basestring):
|
||||
raise errors.AnsibleError("cannot resolve: %s" % x)
|
||||
else:
|
||||
results.append(x)
|
||||
intermediate = utils.listify_lookup_plugin_terms(x, self.basedir, inject)
|
||||
results.append(intermediate)
|
||||
return results
|
||||
|
||||
def run(self, terms, inject=None, **kwargs):
|
||||
|
||||
@@ -45,10 +45,8 @@ class LookupModule(object):
|
||||
def __lookup_injects(self, terms, inject):
|
||||
results = []
|
||||
for x in terms:
|
||||
if isinstance(x, basestring) and x in inject:
|
||||
results.append(inject[x])
|
||||
else:
|
||||
results.append(x)
|
||||
intermediate = utils.listify_lookup_plugin_terms(x, self.basedir, inject)
|
||||
results.append(intermediate)
|
||||
return results
|
||||
|
||||
def run(self, terms, inject=None, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user