From 9fbae704295a4114e289ae95e0e4b0613053d051 Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Tue, 22 Nov 2022 12:07:25 +0800 Subject: [PATCH] Fix a string issue of the selector Signed-off-by: Zhang Rong(Jon) Change-Id: If4d241e4cb278adcf1df51351a080e12d07e6b00 --- o2common/views/route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o2common/views/route.py b/o2common/views/route.py index 868ff70..e740333 100644 --- a/o2common/views/route.py +++ b/o2common/views/route.py @@ -232,5 +232,5 @@ class o2_marshal_with(marshal_with): for s in selector_all: selector[s] = val return - default_selector = str(mask).split('()') + default_selector = str(mask).strip(' ()') self.__update_selector_value(selector, default_selector, val) -- 2.16.6