]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr: use relative import
authorKefu Chai <kchai@redhat.com>
Thu, 8 Feb 2018 10:55:37 +0000 (18:55 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 11 Feb 2018 06:11:38 +0000 (14:11 +0800)
commitb09f754ecb1ba35586adf43e902c1847ba353340
treeac04c120bef73b36b5b8719496a80be20782cf1c
parent91f83cc0a5e0b7a3ac672bc366a2879fc4a1fd8d
pybind/mgr: use relative import

* in python3, we cannot assume default relative import. instead, we should
  be explicit. also, only import the `Module` and `StandbyModule` classes
  from plugins, as they are what we are interested.
* and import urllib.parse in python3.

Fixes: http://tracker.ceph.com/issues/22880
Signed-off-by: Kefu Chai <kchai@redhat.com>
18 files changed:
src/pybind/mgr/balancer/__init__.py
src/pybind/mgr/dashboard/__init__.py
src/pybind/mgr/dashboard/cephfs_clients.py
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/dashboard/rbd_iscsi.py
src/pybind/mgr/dashboard/rbd_ls.py
src/pybind/mgr/dashboard/rbd_mirroring.py
src/pybind/mgr/dashboard/rgw.py
src/pybind/mgr/influx/__init__.py
src/pybind/mgr/localpool/__init__.py
src/pybind/mgr/prometheus/__init__.py
src/pybind/mgr/restful/__init__.py
src/pybind/mgr/restful/api/__init__.py
src/pybind/mgr/restful/hooks.py
src/pybind/mgr/restful/module.py
src/pybind/mgr/selftest/__init__.py
src/pybind/mgr/status/__init__.py
src/pybind/mgr/zabbix/__init__.py