From f7e286cf345a97a9ca6b8587cc16fbc901047dc6 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 31 Jan 2013 20:25:28 +0100 Subject: [PATCH] Fix error format for invalid vars_files --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 95d39323944..e709c97e221 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -323,7 +323,7 @@ class Play(object): new_vars = utils.parse_yaml_from_file(filename4) if new_vars: if type(new_vars) != dict: - raise errors.AnsibleError("%s must be stored as dictonary/hash: %s" % filename4) + raise errors.AnsibleError("%s must be stored as dictonary/hash: %s" % (filename4, type(new_vars))) if host is not None and self._has_vars_in(filename2) and not self._has_vars_in(filename3): # running a host specific pass and has host specific variables # load into setup cache