Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Adjust autipdate env processing: accept stable/on/off values.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesovsky committed Apr 20, 2021
1 parent 4be3e14 commit 250541a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/packaging/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ func (c *Config) Validate() error {
}

switch c.AutoUpdateEnv {
case "y", "yes", "Yes", "YES", "t", "true", "True", "TRUE", "1":
case "y", "yes", "Yes", "YES", "t", "true", "True", "TRUE", "1", "on", "stable":
c.AutoUpdate = "stable"
case "n", "no", "No", "NO", "f", "false", "False", "FALSE", "0":
case "n", "no", "No", "NO", "f", "false", "False", "FALSE", "0", "off":
c.AutoUpdate = "off"
default:
return fmt.Errorf("PGSCV_AUTOUPDATE is not defined, use 'stable' or 'off'")
return fmt.Errorf("PGSCV_AUTOUPDATE is not defined, use 'yes' or 'no'")
}

if c.APIKey == "" {
Expand Down

0 comments on commit 250541a

Please sign in to comment.