From fcd0146c149eb9f253376a7a2db32bf01f599649 Mon Sep 17 00:00:00 2001 From: shubham Date: Thu, 28 Nov 2019 18:04:39 +0530 Subject: [PATCH] renamed one file Signed-off-by: shubham --- cmd/migrate/executor/pool.go | 2 ++ pkg/cstor/migrate/{migration.go => pool.go} | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename pkg/cstor/migrate/{migration.go => pool.go} (99%) diff --git a/cmd/migrate/executor/pool.go b/cmd/migrate/executor/pool.go index 707d48f333..48c278c051 100644 --- a/cmd/migrate/executor/pool.go +++ b/cmd/migrate/executor/pool.go @@ -70,11 +70,13 @@ func (u *MigrateOptions) RunCStorSPCMigrateChecks(cmd *cobra.Command) error { // RunCStorSPCMigrate migrates the given spc. func (u *MigrateOptions) RunCStorSPCMigrate(cmd *cobra.Command) error { + klog.Infof("Migrating spc %s to cspc", u.spcName) err := migrate.Pool(u.spcName, u.openebsNamespace) if err != nil { klog.Error(err) return errors.Errorf("Failed to migrate cStor SPC : %s", u.spcName) } + klog.Infof("Successfully migrated spc %s to cspc", u.spcName) return nil } diff --git a/pkg/cstor/migrate/migration.go b/pkg/cstor/migrate/pool.go similarity index 99% rename from pkg/cstor/migrate/migration.go rename to pkg/cstor/migrate/pool.go index 74680d92c4..52bbf0b50f 100644 --- a/pkg/cstor/migrate/migration.go +++ b/pkg/cstor/migrate/pool.go @@ -47,7 +47,7 @@ const replicaPatch = `{ // Pool ... func Pool(spcName, openebsNamespace string) error { - klog.Infof("Migrating spc %s to cspc", spcName) + spcObj, err := spc.NewKubeClient(). Get(spcName, metav1.GetOptions{}) if k8serrors.IsNotFound(err) {