From: Kiefer Chang Date: Tue, 24 Nov 2020 07:41:11 +0000 (+0800) Subject: mgr/dashboard: fix tox py3 environment error X-Git-Tag: v16.1.0~491^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc974fa953bfdab75f5cdb502c68b540cbd5b9cb;p=ceph.git mgr/dashboard: fix tox py3 environment error Add `ceph_argparse` module to the base environment. Fixes: https://tracker.ceph.com/issues/48338 Signed-off-by: Kiefer Chang --- diff --git a/src/pybind/mgr/dashboard/controllers/user.py b/src/pybind/mgr/dashboard/controllers/user.py index 0fecf2be180b..8d340fedccb4 100644 --- a/src/pybind/mgr/dashboard/controllers/user.py +++ b/src/pybind/mgr/dashboard/controllers/user.py @@ -5,7 +5,7 @@ import time from datetime import datetime import cherrypy -from ceph_argparse import CephString # pylint: disable=import-error +from ceph_argparse import CephString from .. import mgr from ..exceptions import DashboardException, PasswordPolicyException, \ diff --git a/src/pybind/mgr/dashboard/tox.ini b/src/pybind/mgr/dashboard/tox.ini index 5c472862c66a..1cda4c45acd0 100644 --- a/src/pybind/mgr/dashboard/tox.ini +++ b/src/pybind/mgr/dashboard/tox.ini @@ -38,6 +38,7 @@ deps = passenv = PYTHONPATH setenv = + PYTHONPATH=$PYTHONPATH:../.. CFLAGS = -DXMLSEC_NO_SIZE_T PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1