From aed429554dc86385408133988da5caba44dce891 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 11 Jun 2015 10:03:26 -0400 Subject: [PATCH] better checks to ensure listify emits a non string iterable --- lib/ansible/utils/listify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/listify.py b/lib/ansible/utils/listify.py index dfc80120423..d8ef025e0bb 100644 --- a/lib/ansible/utils/listify.py +++ b/lib/ansible/utils/listify.py @@ -38,7 +38,7 @@ def listify_lookup_plugin_terms(terms, variables, loader): #TODO: check if this is needed as template should also return correct type already terms = safe_eval(terms) - if isinstance(terms, basestring): + if isinstance(terms, basestring) or not isinstance(terms, list) and not isinstance(terms, set): terms = [ terms ] return terms