mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
browser-flag: wrapped bool type denotes browser on/off flag. (#3963)
Statically typed BrowserFlag prevents any arbitrary string value usage. The wrapped bool marshals/unmarshals JSON according to the typed value ie string value "on" represents boolean true and "off" as boolean false.
This commit is contained in:
@@ -886,7 +886,7 @@ func migrateV13ToV14() error {
|
||||
}
|
||||
|
||||
// Set the new browser parameter to true by default
|
||||
srvConfig.Browser = "on"
|
||||
srvConfig.Browser = true
|
||||
|
||||
if err = quick.Save(configFile, srvConfig); err != nil {
|
||||
return fmt.Errorf("Failed to migrate config from ‘%s’ to ‘%s’. %v", cv13.Version, srvConfig.Version, err)
|
||||
|
||||
Reference in New Issue
Block a user