Invalid jinja pattern regex corrected

Due to this invalid regex it is not possible to run workflows
with Jinja2 expressions in some python2 environment.

Change-Id: I3d8fe9a617d5e3f916a8c102d0408354064b766c
Closes-bug: #1658958
This commit is contained in:
Istvan Imre 2017-01-24 11:26:08 +01:00
parent 93ecd38dce
commit 5267e1eb1c

View File

@ -26,8 +26,8 @@ from mistral.utils import expression_utils
LOG = logging.getLogger(__name__)
JINJA_REGEXP = '({{(.*)?}})'
JINJA_BLOCK_REGEXP = '({%(.*)?%})'
JINJA_REGEXP = '({{(.*)}})'
JINJA_BLOCK_REGEXP = '({%(.*)%})'
_environment = jinja2.Environment(
undefined=jinja2.StrictUndefined,