]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/orch: pass unicode string to ipaddress.ip_network() 31755/head
authorKefu Chai <kchai@redhat.com>
Wed, 20 Nov 2019 08:39:32 +0000 (16:39 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Nov 2019 08:41:09 +0000 (16:41 +0800)
commitd3fb8fb0d8e3ca4d6bfc216edfc42c305c88c6aa
tree8662172ce8d5e49b42da81d437697d09c5a95333
parent71b38f5c8b120ea077359006eb7b6f4c1e4c6150
mgr/orch: pass unicode string to ipaddress.ip_network()

otherwise it complains like

>               raise e
E               AddressValueError: '10.1.1.10' does not appear to be an
IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead
of a unicode object?

orchestrator.py:94: AddressValueError

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/orchestrator.py