Don't iterate across strings in with_nested.

pull/3631/merge
Michael DeHaan 11 years ago
parent 996dbb72eb
commit c0ab417ef9

@ -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…
Cancel
Save