Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/util/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin
PrintErrorMessageAndExit(err.Error())
}
if strings.TrimSpace(value) == "" {
PrintErrorMessageAndExit(fmt.Sprintf("Secret key '%s' has an empty value", key))
PrintWarning(fmt.Sprintf("Secret key '%s' has an empty value", key))
}
secretArgs = append(secretArgs, fmt.Sprintf("%s=%s", key, value))
}
Expand Down Expand Up @@ -705,8 +705,8 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin

for _, arg := range secretArgs {
splitKeyValueFromArg := strings.SplitN(arg, "=", 2)
if splitKeyValueFromArg[0] == "" || splitKeyValueFromArg[1] == "" {
PrintErrorMessageAndExit("ensure that each secret has a none empty key and value. Modify the input and try again")
if splitKeyValueFromArg[0] == "" {
PrintErrorMessageAndExit("ensure that each secret has a non empty key. Modify the input and try again")
}

if unicode.IsNumber(rune(splitKeyValueFromArg[0][0])) {
Expand Down