]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/insights: fix python3 DeprecationWarning
authorMichael Fritch <mfritch@suse.com>
Mon, 4 May 2020 18:37:11 +0000 (12:37 -0600)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:51 +0000 (16:34 +0800)
commitb11df30d5e6d87919a2da8e0edf294abb50c6ea3
tree7db719234fd2383d488ced965b406ab42026f558
parentc4e300ee27270e4bc6689fbea404b46f2a8c7790
mgr/insights: fix python3 DeprecationWarning

insights/module.py:167: DeprecationWarning: invalid escape sequence \d
    r = "ceph version (?P<release>\d+)\.(?P<major>\d+)\.(?P<minor>\d+)"

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 41ffb701eca6280df00cd526edfce3a9c851b53b)
src/pybind/mgr/insights/module.py