Skip to content

Commit 25d8cfc

Browse files
committed
unset version in case of errors
1 parent 9de79f3 commit 25d8cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/orchestrator/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func NewFromEnv() (Configuration, error) {
110110

111111
maxVersion, err := strconv.Atoi(maxVersionStr)
112112
if err != nil || maxVersion <= 0 {
113-
maxVersion = 1
113+
maxVersion = 0
114114
}
115115
slog.Debug("Using max update major version", slog.Int("version", maxVersion))
116116

0 commit comments

Comments
 (0)