Don't iterate across strings in with_nested.

This commit is contained in:
Michael DeHaan 2013-08-03 13:51:45 -04:00
parent 996dbb72eb
commit c0ab417ef9

View file

@ -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