From a5f59b2c0f8dce70651cec1d2d8f5e74ef73f627 Mon Sep 17 00:00:00 2001 From: taxe10 Date: Wed, 5 Jun 2024 13:04:50 -0700 Subject: [PATCH] Fix default values when json --- src/frontend.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend.py b/src/frontend.py index bc84a70..c8e6ca7 100755 --- a/src/frontend.py +++ b/src/frontend.py @@ -46,14 +46,14 @@ FLOW_TYPE = os.getenv("FLOW_TYPE", "podman") # Slurm -PARTITIONS_CPU = json.loads(os.getenv("PARTITIONS_CPU", [])) -RESERVATIONS_CPU = json.loads(os.getenv("RESERVATIONS_CPU", [])) +PARTITIONS_CPU = json.loads(os.getenv("PARTITIONS_CPU", "[]")) +RESERVATIONS_CPU = json.loads(os.getenv("RESERVATIONS_CPU", "[]")) MAX_TIME_CPU = os.getenv("MAX_TIME_CPU", "1:00:00") -PARTITIONS_GPU = json.loads(os.getenv("PARTITIONS_CPU", [])) -RESERVATIONS_GPU = json.loads(os.getenv("RESERVATIONS_CPU", [])) +PARTITIONS_GPU = json.loads(os.getenv("PARTITIONS_CPU", "[]")) +RESERVATIONS_GPU = json.loads(os.getenv("RESERVATIONS_CPU", "[]")) MAX_TIME_GPU = os.getenv("MAX_TIME_CPU", "1:00:00") SUBMISSION_SSH_KEY = os.getenv("SUBMISSION_SSH_KEY", "") -FORWARD_PORTS = json.loads(os.getenv("FORWARD_PORTS", [])) +FORWARD_PORTS = json.loads(os.getenv("FORWARD_PORTS", "[]")) # Mlex content api CONTENT_API_URL = os.getenv("CONTENT_API_URL", "http://localhost:8000/api/v0/models")