summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/library
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2017-05-10 16:40:32 -0400
committerMatt Woodson <mwoodson@redhat.com>2017-05-10 16:40:32 -0400
commit9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf (patch)
treeafb3e81625b5750387863f8ca764bcc315997d00 /roles/lib_utils/library
parent3a8f805e134848c4dbf24315f3f0b5b48c00721e (diff)
downloadopenshift-9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf.tar.gz
openshift-9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf.tar.bz2
openshift-9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf.tar.xz
openshift-9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf.zip
Fix for yedit custom separators
Diffstat (limited to 'roles/lib_utils/library')
-rw-r--r--roles/lib_utils/library/yedit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/library/yedit.py b/roles/lib_utils/library/yedit.py
index 9adaeeb52..928b067aa 100644
--- a/roles/lib_utils/library/yedit.py
+++ b/roles/lib_utils/library/yedit.py
@@ -212,7 +212,7 @@ class YeditException(Exception):
class Yedit(object):
''' Class to modify yaml files '''
re_valid_key = r"(((\[-?\d+\])|([0-9a-zA-Z%s/_-]+)).?)+$"
- re_key = r"(?:\[(-?\d+)\])|([0-9a-zA-Z%s/_-]+)"
+ re_key = r"(?:\[(-?\d+)\])|([0-9a-zA-Z{}/_-]+)"
com_sep = set(['.', '#', '|', ':'])
# pylint: disable=too-many-arguments