diff options
author | Matt Woodson <mwoodson@redhat.com> | 2017-05-10 16:40:32 -0400 |
---|---|---|
committer | Matt Woodson <mwoodson@redhat.com> | 2017-05-10 16:40:32 -0400 |
commit | 9826ad6c9edcfeb9af9c3e7e166b402ba64ea4bf (patch) | |
tree | afb3e81625b5750387863f8ca764bcc315997d00 /roles/lib_utils | |
parent | 3a8f805e134848c4dbf24315f3f0b5b48c00721e (diff) | |
download | openshift-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')
-rw-r--r-- | roles/lib_utils/library/yedit.py | 2 | ||||
-rw-r--r-- | roles/lib_utils/src/class/yedit.py | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/roles/lib_utils/src/class/yedit.py b/roles/lib_utils/src/class/yedit.py index e0a27012f..957c35a06 100644 --- a/roles/lib_utils/src/class/yedit.py +++ b/roles/lib_utils/src/class/yedit.py @@ -11,7 +11,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 |