mirror of
https://github.com/minio/minio.git
synced 2025-12-02 06:07:51 -05:00
Do not add comments after migration (#8530)
Also filter out empty comments from being printed.
This commit is contained in:
@@ -32,7 +32,6 @@ func SetCredentials(c Config, cred auth.Credentials) {
|
||||
}
|
||||
c[CredentialsSubSys][Default] = KVS{
|
||||
State: StateOn,
|
||||
Comment: "Settings for credentials, after migrating config",
|
||||
AccessKey: cred.AccessKey,
|
||||
SecretKey: cred.SecretKey,
|
||||
}
|
||||
@@ -46,7 +45,6 @@ func SetRegion(c Config, name string) {
|
||||
c[RegionSubSys][Default] = KVS{
|
||||
RegionName: name,
|
||||
State: StateOn,
|
||||
Comment: "Settings for Region, after migrating config",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +56,6 @@ func SetWorm(c Config, b bool) {
|
||||
}
|
||||
// Set the new value.
|
||||
c[WormSubSys][Default] = KVS{
|
||||
State: StateOn,
|
||||
Comment: "Settings for WORM, after migrating config",
|
||||
State: StateOn,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user