|
|
|
@ -45,12 +45,8 @@ class LookupModule(object):
|
|
|
|
def __lookup_injects(self, terms, inject):
|
|
|
|
def __lookup_injects(self, terms, inject):
|
|
|
|
results = []
|
|
|
|
results = []
|
|
|
|
for x in terms:
|
|
|
|
for x in terms:
|
|
|
|
if isinstance(x, basestring) and x in inject:
|
|
|
|
intermediate = utils.listify_lookup_plugin_terms(x, self.basedir, inject)
|
|
|
|
results.append(inject[x])
|
|
|
|
results.append(intermediate)
|
|
|
|
elif isinstance(x, basestring):
|
|
|
|
|
|
|
|
raise errors.AnsibleError("cannot resolve: %s" % x)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
results.append(x)
|
|
|
|
|
|
|
|
return results
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
|
|
def run(self, terms, inject=None, **kwargs):
|
|
|
|
def run(self, terms, inject=None, **kwargs):
|
|
|
|
|