Don't iterate across strings in with_nested.
This commit is contained in:
parent
996dbb72eb
commit
c0ab417ef9
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ class LookupModule(object):
|
|||
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)
|
||||
return results
|
||||
|
|
Loading…
Reference in a new issue