Skip to content

Commit

Permalink
renamed one file
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai committed Nov 29, 2019
1 parent 0eb7eec commit fcd0146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/migrate/executor/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fcd0146

Please sign in to comment.