diff options
Diffstat (limited to 'buildstream/_options/optionpool.py')
-rw-r--r-- | buildstream/_options/optionpool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_options/optionpool.py b/buildstream/_options/optionpool.py index 387080110..90a404bfb 100644 --- a/buildstream/_options/optionpool.py +++ b/buildstream/_options/optionpool.py @@ -138,7 +138,7 @@ class OptionPool(): # Variables must be resolved at this point. # try: - template_string = "{%% if %s %%} True {%% else %%} False {%% endif %%}" % expression + template_string = "{{% if {} %}} True {{% else %}} False {{% endif %}}".format(expression) template = self.environment.from_string(template_string) context = template.new_context(self.variables, shared=True) result = template.root_render_func(context) |