Fix errors in lookup plugins.

Lookup plugins 'sequence' and 'template' now import 'ansible.utils'
appropriately in order to use the 'listify_lookup_plugin_terms'
function.

Also, 'dnstxt' and 'env' now check to see if 'terms' is a string;
without this calls like '{{ lookup('env', 'HOME') }}' fail.
This commit is contained in:
C. Morgan Hamill 2013-04-17 11:06:15 -04:00
commit 663d37b537
5 changed files with 9 additions and 5 deletions

View file

@ -44,8 +44,8 @@ class LookupModule(object):
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
if isinstance(basestring, terms):
terms = [ terms ]
ret = []
for term in terms: