From 6d785ca081d8e5aa141ff0b6b6b8a1cfd968f6d5 Mon Sep 17 00:00:00 2001 From: Nathan Cahill Date: Tue, 16 Dec 2014 20:58:38 -0700 Subject: [PATCH] support variables with dashes - fixes #9786 --- 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 a735e9c0b0e..b2e921eea27 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 and '-' not in str(inject[conditional]): + if conditional in inject: conditional = inject[conditional] conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined) original = str(conditional).replace("jinja2_compare ","")