]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix tox py3 environment error 38260/head
authorKiefer Chang <kiefer.chang@suse.com>
Tue, 24 Nov 2020 07:41:11 +0000 (15:41 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 24 Nov 2020 07:44:43 +0000 (15:44 +0800)
Add `ceph_argparse` module to the base environment.

Fixes: https://tracker.ceph.com/issues/48338
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/controllers/user.py
src/pybind/mgr/dashboard/tox.ini

index 0fecf2be180b46ae9ae76bc97500774b853a3fb3..8d340fedccb4a3fd9861c0d021546873741c3daf 100644 (file)
@@ -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, \
index 5c472862c66a1bfd7f048e1a14a2354c7a6db914..1cda4c45acd012e0283279ee240d9135147331b4 100644 (file)
@@ -38,6 +38,7 @@ deps =
 passenv =
     PYTHONPATH
 setenv =
+    PYTHONPATH=$PYTHONPATH:../..
     CFLAGS = -DXMLSEC_NO_SIZE_T
     PYTHONUNBUFFERED=1
     PYTHONDONTWRITEBYTECODE=1