From 88eb5516eb761704ef4fcf718fa1bd219921424e Mon Sep 17 00:00:00 2001 From: "C. Morgan Hamill" Date: Wed, 17 Apr 2013 11:45:28 -0400 Subject: [PATCH] Fix 'sequence' plugin error. If 'terms' is a string, replace it with a single item list. --- lib/ansible/runner/lookup_plugins/sequence.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/lookup_plugins/sequence.py b/lib/ansible/runner/lookup_plugins/sequence.py index 8d70aad98c7..b162b3069e7 100644 --- a/lib/ansible/runner/lookup_plugins/sequence.py +++ b/lib/ansible/runner/lookup_plugins/sequence.py @@ -173,7 +173,10 @@ class LookupModule(object): def run(self, terms, inject=None, **kwargs): results = [] - terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject) + terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject) + + if isinstance(terms, basestring): + terms = [ terms ] for term in terms: try: