Skip to content

Commit

Permalink
Merge pull request #1 from panosc-eu/hot_fix_deployment_string
Browse files Browse the repository at this point in the history
added deployment string in root info
  • Loading branch information
nitrosx authored Oct 18, 2021
2 parents 5d35342 + dce4bd3 commit ff85906
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class Config:
"description" : "PaNOSC search scoring",
"version" : "unknown",
"waitToStartCompute" : 5,
"debug" : False
"debug" : False,
"deployment" : "unknown"
}

# list of environmental variables
Expand All @@ -37,7 +38,8 @@ class Config:
"description" : "str",
"version" : "str",
"waitToStartCompute" : "int",
"debug" : "bool"
"debug" : "bool",
"deployment" : "str"
}


Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ff85906

Please sign in to comment.