From 8b4ebd8e4a654f800fb0a4caab2a302f471bc034 Mon Sep 17 00:00:00 2001 From: John Barker Date: Mon, 7 Mar 2016 12:49:41 +0000 Subject: [PATCH] Make it easier to read error message --- 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 7725b5c3c9b..b9eafe44275 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -414,7 +414,7 @@ class Base: def _validate_variable_keys(ds): for key in ds: if not isidentifier(key): - raise TypeError("%s is not a valid variable name" % key) + raise TypeError("'%s' is not a valid variable name" % key) try: if isinstance(ds, dict):