diff --git a/util/secscan/api.py b/util/secscan/api.py index d07e9de81..5efdafb92 100644 --- a/util/secscan/api.py +++ b/util/secscan/api.py @@ -1,4 +1,3 @@ -import os import logging from abc import ABCMeta, abstractmethod @@ -12,7 +11,7 @@ from flask import url_for from data.database import CloseForLongOperation from data import model from data.model.storage import get_storage_locations -from util import get_app_url +from util import get_app_url, slash_join from util.abchelpers import nooper from util.failover import failover, FailoverException from util.secscan.validator import SecurityConfigValidator @@ -24,7 +23,7 @@ TOKEN_VALIDITY_LIFETIME_S = 60 # Amount of time the security scanner has to cal UNKNOWN_PARENT_LAYER_ERROR_MSG = 'worker: parent layer is unknown, it must be processed first' -MITM_CERT_PATH = os.path.join(CONF_DIR, '/mitm.cert') +MITM_CERT_PATH = slash_join(CONF_DIR, 'mitm.cert') DEFAULT_HTTP_HEADERS = {'Connection': 'close'}