Merge pull request #10100 from ansible/revert-9834-fix-variables-with-dashes

Revert "Support variable values with dashes"
pull/10103/head
Brian Coca 10 years ago
commit 2f1fc3e042

@ -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 ","")

Loading…
Cancel
Save