summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanh Ha <zxiiro@linux.com>2018-07-27 22:46:30 -0400
committerThanh Ha <zxiiro@linux.com>2018-07-27 22:46:41 -0400
commitc33dbaaaae0cc760498924dc25c7c99396c5702b (patch)
treed80883a08d0544fbfb86f5663a5bb94ec23974a3
parentcb6641d7f89ed1eca9c2d795f2f6fef3fad3a88d (diff)
Revert "Allow dashes in variable key names"2.2.1
This reverts commit b92336aa95c7b06316ece9e0537fb3d7c150279c. Change-Id: I0c682f13af83febc862a927f389a547b851e41c0 Signed-off-by: Thanh Ha <zxiiro@linux.com>
Notes
Notes (review): Code-Review+2: Thanh Ha <zxiiro@gmail.com> Workflow+1: Thanh Ha <zxiiro@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 28 Jul 2018 03:03:43 +0000 Reviewed-on: https://review.openstack.org/586735 Project: openstack-infra/jenkins-job-builder Branch: refs/heads/master
-rw-r--r--jenkins_jobs/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jenkins_jobs/formatter.py b/jenkins_jobs/formatter.py
index a79729e..9b1d064 100644
--- a/jenkins_jobs/formatter.py
+++ b/jenkins_jobs/formatter.py
@@ -84,7 +84,7 @@ class CustomFormatter(Formatter):
84 _expr = """ 84 _expr = """
85 (?<!{){({{)* # non-pair opening { 85 (?<!{){({{)* # non-pair opening {
86 (?:obj:)? # obj: 86 (?:obj:)? # obj:
87 (?P<key>[\w\-]+) # key 87 (?P<key>\w+) # key
88 (?:\|(?P<default>[^}]*))? # default fallback 88 (?:\|(?P<default>[^}]*))? # default fallback
89 }(}})*(?!}) # non-pair closing } 89 }(}})*(?!}) # non-pair closing }
90 """ 90 """