modify setting key

This commit is contained in:
MaysWind
2024-07-29 22:37:59 +08:00
parent de086aa29e
commit b91305c490
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -553,9 +553,9 @@ func loadLogConfiguration(config *Config, configFile *ini.File, sectionName stri
}
func loadStorageConfiguration(config *Config, configFile *ini.File, sectionName string) error {
if getConfigItemStringValue(configFile, sectionName, "storage_type") == LocalFileSystemObjectStorageType {
if getConfigItemStringValue(configFile, sectionName, "type") == LocalFileSystemObjectStorageType {
config.StorageType = LocalFileSystemObjectStorageType
} else if getConfigItemStringValue(configFile, sectionName, "storage_type") == MinIOStorageType {
} else if getConfigItemStringValue(configFile, sectionName, "type") == MinIOStorageType {
config.StorageType = MinIOStorageType
} else {
return errs.ErrInvalidStorageType