Skip to content

Commit

Permalink
don't print variable value (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkickr authored and neel-astro committed Oct 11, 2023
1 parent a47e5bc commit 31055cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/deployment/deployment_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func addVariablesFromFile(envFile string, oldKeyList []string, oldEnvironmentVar
key := strings.SplitN(vars[i], "=", 2)[0] //nolint:gomnd
value := strings.SplitN(vars[i], "=", 2)[1] //nolint:gomnd
if key == "" {
fmt.Printf("empty key! skipping creating variable with value: %s\n", value)
fmt.Printf("empty key! skipping creating variable with key: %s\n", key)
errVarBool = true
continue
}
Expand All @@ -296,7 +296,7 @@ func addVariablesFromFile(envFile string, oldKeyList []string, oldEnvironmentVar
continue
}

fmt.Printf("Cleaning quotes and whitespaces from variable value - %s", value)
fmt.Printf("Cleaning quotes and whitespaces from variable %s", key)
value = strings.Trim(value, `"`)
value = strings.Trim(value, `'`)
value = strings.TrimSpace(value)
Expand Down

0 comments on commit 31055cf

Please sign in to comment.