From 38573c55bf59439760807510154aa8f8a1cf8f30 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 15 Sep 2015 13:08:10 -0400 Subject: [PATCH] Tweak failure condition for field attributes expected to be strings --- lib/ansible/playbook/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index 44630144938..c4fa631b610 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -235,7 +235,7 @@ class Base: # and make sure the attribute is of the type it should be value = getattr(self, name) if value is not None: - if attribute.isa == 'string' and not isinstance(value, string_types): + if attribute.isa == 'string' and isinstance(value, (list, dict)): raise AnsibleParserError("The field '%s' is supposed to be a string type, however the incoming data structure is a %s" % (name, type(value)), obj=self.get_ds()) def copy(self):