diff --git a/zoo-project-dru/Chart.yaml b/zoo-project-dru/Chart.yaml index 2226ae6..646e808 100644 --- a/zoo-project-dru/Chart.yaml +++ b/zoo-project-dru/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.21 +version: 0.3.22 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/zoo-project-dru/files/zoo-project/security_service.py b/zoo-project-dru/files/zoo-project/security_service.py index 9351354..af974fe 100644 --- a/zoo-project-dru/files/zoo-project/security_service.py +++ b/zoo-project-dru/files/zoo-project/security_service.py @@ -70,9 +70,12 @@ def securityIn(conf, inputs, outputs): if "servicesNamespace" in conf and "debug" in conf["servicesNamespace"]: zoo.debug(f"No JWT service available: {str(e)}") rPath = conf["servicesNamespace"]["path"] + "/" + has_rpath=False for i in conf["renv"]: if i.count("SERVICES_NAMESPACE"): - rPath += conf["renv"][i] + if not(has_rpath): + rPath += conf["renv"][i] + has_rpath=True if "auth_env" not in conf: conf["auth_env"] = {"user": conf["renv"][i], "cwd": rPath} else: @@ -96,7 +99,7 @@ def securityIn(conf, inputs, outputs): if "required_files" in conf["servicesNamespace"]: rFiles = conf["servicesNamespace"]["required_files"].split(",") for i in range(len(rFiles)): - zoo.info(f"Copy file {rFile[i]}") + zoo.info(f"Copy file {rFiles[i]}") shutil.copyfile( conf["renv"]["CONTEXT_DOCUMENT_ROOT"] + "/" + rFiles[i], rPath + "/" + rFiles[i],