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

This commit is contained in:
poornas 2017-12-17 21:00:12 -08:00 committed by Dee Koder
parent 819d1e80c6
commit a182fe8c15
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 == "" {