]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/zabbix: fix invalid escape sequence 58767/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 23 Jul 2024 18:17:13 +0000 (20:17 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 23 Jul 2024 18:17:13 +0000 (20:17 +0200)
commit6dfb20b2c3cd4fd0d9c94964008a679f2e535f4e
tree96d08d8b82dfe759e9f36fd72669467d9b8a4dde
parent6b91f8ecede6b7cfadd453169559fde7c849c5ba
mgr/zabbix: fix invalid escape sequence

Get rid of DepricationWarning which, according to [1],
is going to become a SyntaxError:

  /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/zabbix/module.py:134: DeprecationWarning: invalid escape sequence '\['
    uri = re.match("(?:(?:\[?)([a-z0-9-\.]+|[a-f0-9:\.]+)(?:\]?))(?:((?::))([0-9]{1,5}))?$", server)

1. https://docs.python.org/3.11/library/re.html

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
src/pybind/mgr/zabbix/module.py