Minor environment / org_id name changes

This commit is contained in:
Frikky
2025-06-25 22:05:42 +02:00
parent db18adaced
commit 0c9931a70f
3 changed files with 4 additions and 3 deletions
-1
View File
@@ -1,5 +1,4 @@
# Default execution environment for workers
ORG_ID=Shuffle
ENVIRONMENT_NAME=Shuffle
# Sanitize liquid.py input
+2 -2
View File
@@ -638,7 +638,7 @@ func handleRegister(resp http.ResponseWriter, request *http.Request) {
} else {
log.Printf("[DEBUG] Successfully created the default org!")
defaultEnv := os.Getenv("ORG_ID")
defaultEnv := os.Getenv("ENVIRONMENT_NAME")
if len(defaultEnv) == 0 {
defaultEnv = "Shuffle"
log.Printf("[DEBUG] Setting default environment for org to %s", defaultEnv)
@@ -3925,7 +3925,7 @@ func runInitEs(ctx context.Context) {
log.Printf("[INFO] Running with HTTPS proxy %s (env: HTTPS_PROXY)", httpsProxy)
}
defaultEnv := os.Getenv("ORG_ID")
defaultEnv := os.Getenv("ENVIRONMENT_NAME")
if len(defaultEnv) == 0 {
defaultEnv = "Shuffle"
log.Printf("[DEBUG] Setting default environment for org to %s", defaultEnv)
+2
View File
@@ -292,6 +292,8 @@ func handleGetWorkflowqueue(resp http.ResponseWriter, request *http.Request) {
log.Printf("[WARNING] Failed handling Orborus failover: %s", err)
}
log.Printf("[DEBUG] Issue with environment ID: %s", orgId)
return
}