From a182fe8c15bca98b5ff948d24c0758bbf59a1065 Mon Sep 17 00:00:00 2001 From: poornas Date: Sun, 17 Dec 2017 21:00:12 -0800 Subject: [PATCH] update steps to make changes to config.json (#5292) --- cmd/config-current.go | 4 ++-- cmd/config-migrate.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/config-current.go b/cmd/config-current.go index df1ed6b42..a4736a9ff 100644 --- a/cmd/config-current.go +++ b/cmd/config-current.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 diff --git a/cmd/config-migrate.go b/cmd/config-migrate.go index 6e76bec42..337ca7445 100644 --- a/cmd/config-migrate.go +++ b/cmd/config-migrate.go @@ -1616,7 +1616,7 @@ func migrateV20ToV21() error { srvConfig := &serverConfigV21{ Notify: ¬ifier{}, } - srvConfig.Version = serverConfigVersion + srvConfig.Version = "21" srvConfig.Credential = cv20.Credential srvConfig.Region = cv20.Region if srvConfig.Region == "" {