]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: escape special chars using r-string
authorKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2021 07:47:31 +0000 (15:47 +0800)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 13:00:52 +0000 (08:00 -0500)
commitfeb00569edc5e077a893285fc669d7d7905a8fc9
treea3d9e004273b9334fb73415a4238241c0c7bada8
parent52355ffb528dbec3a97536b43327a30be7e3ad11
mgr/prometheus: escape special chars using r-string

so we don't need to worry about escaping the backslash anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 734dd75f35fb24d319ee1ddbff09da53dfac8c72)
src/pybind/mgr/prometheus/module.py