mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(cli): correctly print deprecated warnings (#8771)
In the previous implementation, it was possible for default-set values to trigger the deprecation warning.
This commit is contained in:
+1
-1
@@ -1148,7 +1148,7 @@ func PrintDeprecatedOptions() clibase.MiddlewareFunc {
|
||||
continue
|
||||
}
|
||||
|
||||
if opt.Value.String() == opt.Default {
|
||||
if opt.ValueSource == clibase.ValueSourceNone || opt.ValueSource == clibase.ValueSourceDefault {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user