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: for x in terms:
if isinstance(x, basestring) and x in inject: if isinstance(x, basestring) and x in inject:
results.append(inject[x]) results.append(inject[x])
elif isinstance(x, basestring):
raise errors.AnsibleError("cannot resolve: %s" % x)
else: else:
results.append(x) results.append(x)
return results return results

Loading…
Cancel
Save