]> 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>
Wed, 3 Jun 2020 11:57:01 +0000 (19:57 +0800)
commit1dec34c27886263e25013946d42cc852f7f1c2c6
tree1cf455db07fc7b1252dc3123fe0966293425759d
parent6e0527b485a5699e3b474da50f0a84401861fdfd
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