Refactor and simplify etcd helpers used in IAM subsystem (#7980)

This commit is contained in:
Harshavardhana
2019-07-26 13:42:54 -07:00
committed by kannappanr
parent 007a52b546
commit e871e27562
4 changed files with 81 additions and 63 deletions

View File

@@ -2426,7 +2426,7 @@ func migrateConfigToMinioSys(objAPI ObjectLayer) (err error) {
defer func() {
if err == nil {
if globalEtcdClient != nil {
deleteConfigEtcd(context.Background(), globalEtcdClient, configFile)
deleteKeyEtcd(context.Background(), globalEtcdClient, configFile)
} else {
// Rename config.json to config.json.deprecated only upon
// success of this function.