update steps to make changes to config.json (#5292)

master
poornas 7 years ago committed by Dee Koder
parent 819d1e80c6
commit a182fe8c15
  1. 4
      cmd/config-current.go
  2. 2
      cmd/config-migrate.go

@ -29,8 +29,8 @@ import (
// Steps to move from version N to version N+1
// 1. Add new struct serverConfigVN+1 in config-versions.go
// 2. Set configCurrentVersion to "N+1"
// 3. Set serverConfigCurrent to serverConfigVN+1
// 2. Set serverConfigVersion to "N+1"
// 3. Set serverConfig to serverConfigVN+1
// 4. Add new migration function (ex. func migrateVNToVN+1()) in config-migrate.go
// 5. Call migrateVNToVN+1() from migrateConfig() in config-migrate.go
// 6. Make changes in config-current_test.go for any test change

@ -1616,7 +1616,7 @@ func migrateV20ToV21() error {
srvConfig := &serverConfigV21{
Notify: &notifier{},
}
srvConfig.Version = serverConfigVersion
srvConfig.Version = "21"
srvConfig.Credential = cv20.Credential
srvConfig.Region = cv20.Region
if srvConfig.Region == "" {

Loading…
Cancel
Save