From 9d190c8d8d3ed33c75237943282ffbb8065a9d51 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 26 Jan 2015 12:54:50 -0500 Subject: [PATCH] Revert "Support variable values with dashes" --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 7879f5a0a69..44db63e2769 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -269,7 +269,7 @@ def check_conditional(conditional, basedir, inject, fail_on_undefined=False): conditional = conditional.replace("jinja2_compare ","") # allow variable names - if conditional in inject: + if conditional in inject and '-' not in str(inject[conditional]): conditional = inject[conditional] conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined) original = str(conditional).replace("jinja2_compare ","")