From 4d90257372e0be3a35d807ddc19004b8d6e0dd36 Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Thu, 5 Apr 2018 16:46:55 -0500 Subject: [PATCH] [Fix] Multidigit array index - Allow array index in substitution destinations to have multiple digits Change-Id: I8ef6241763dd7d841e25774fa041f7f4a3b11c7b --- deckhand/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deckhand/common/utils.py b/deckhand/common/utils.py index 19a3a5eb..a83d2a7e 100644 --- a/deckhand/common/utils.py +++ b/deckhand/common/utils.py @@ -106,7 +106,7 @@ def _populate_data_with_attributes(jsonpath, data): # Populates ``data`` with any path specified in ``jsonpath``. For example, # if jsonpath is ".foo[0].bar.baz" then for each subpath -- foo[0], bar, # and baz -- that key will be added to ``data`` if missing. - array_re = re.compile(r'.*\[\d\].*') + array_re = re.compile(r'.*\[\d+\].*') d = data for path in jsonpath.split('.')[1:]: