From dce4bd36e02cd8ed798aa703188221787dd87525 Mon Sep 17 00:00:00 2001 From: Max Novelli Date: Fri, 15 Oct 2021 11:12:10 +0200 Subject: [PATCH] added deployment string in root info --- app/common/config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/common/config.py b/app/common/config.py index 18335aa..9f45831 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -25,7 +25,8 @@ class Config: "description" : "PaNOSC search scoring", "version" : "unknown", "waitToStartCompute" : 5, - "debug" : False + "debug" : False, + "deployment" : "unknown" } # list of environmental variables @@ -37,7 +38,8 @@ class Config: "description" : "str", "version" : "str", "waitToStartCompute" : "int", - "debug" : "bool" + "debug" : "bool", + "deployment" : "str" } @@ -67,7 +69,7 @@ def __init__(self,config_file="./config/pss_config.json") -> None: self.config[var] = env_value # set root information - for info in ["application", "description", "version"]: + for info in ["application", "description", "version", "deployment"]: self.rootInfo[info] = self.config[info] self.rootInfo["started-time"] = utils.getCurrentIsoTimestamp(self.tsStarted)