mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Support variable values with dashes"
This commit is contained in:
parent
13bbf9bfbb
commit
9d190c8d8d
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ def check_conditional(conditional, basedir, inject, fail_on_undefined=False):
|
||||||
|
|
||||||
conditional = conditional.replace("jinja2_compare ","")
|
conditional = conditional.replace("jinja2_compare ","")
|
||||||
# allow variable names
|
# allow variable names
|
||||||
if conditional in inject:
|
if conditional in inject and '-' not in str(inject[conditional]):
|
||||||
conditional = inject[conditional]
|
conditional = inject[conditional]
|
||||||
conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined)
|
conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined)
|
||||||
original = str(conditional).replace("jinja2_compare ","")
|
original = str(conditional).replace("jinja2_compare ","")
|
||||||
|
|
Loading…
Reference in a new issue