From dc974fa953bfdab75f5cdb502c68b540cbd5b9cb Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Tue, 24 Nov 2020 15:41:11 +0800 Subject: [PATCH] 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 --- src/pybind/mgr/dashboard/controllers/user.py | 2 +- src/pybind/mgr/dashboard/tox.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3