From 6eaa88045c7243684878106101c093d13a6b3ae6 Mon Sep 17 00:00:00 2001 From: Rushikesh Kinhalkar Date: Wed, 15 Nov 2023 23:50:42 -0700 Subject: [PATCH 1/2] [PWX-34442] Update Error message, remove labels Signed-off-by: Rushikesh Kinhalkar --- api/errors/errors.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/errors/errors.go b/api/errors/errors.go index f0addb7b7..b831704d0 100644 --- a/api/errors/errors.go +++ b/api/errors/errors.go @@ -5,7 +5,6 @@ import ( "strings" "github.com/libopenstorage/openstorage/api" - "github.com/libopenstorage/openstorage/pkg/parser" ) var ( @@ -56,7 +55,7 @@ func (e *ErrStoragePoolResizeInProgress) Error() string { if e.Pool.LastOperation != nil { op := e.Pool.LastOperation if op.Type == api.SdkStoragePool_OPERATION_RESIZE { - errMsg = fmt.Sprintf("%s %s %s", errMsg, op.Msg, parser.LabelsToString(op.Params)) + errMsg = fmt.Sprintf("%s %s %s", errMsg, op.Msg) } } From 6612dee940a71709babd78ce8d383968468cd218 Mon Sep 17 00:00:00 2001 From: Rushikesh Kinhalkar Date: Thu, 16 Nov 2023 07:15:08 -0700 Subject: [PATCH 2/2] resolve error Signed-off-by: Rushikesh Kinhalkar --- api/errors/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/errors/errors.go b/api/errors/errors.go index b831704d0..63c9d8e0d 100644 --- a/api/errors/errors.go +++ b/api/errors/errors.go @@ -55,7 +55,7 @@ func (e *ErrStoragePoolResizeInProgress) Error() string { if e.Pool.LastOperation != nil { op := e.Pool.LastOperation if op.Type == api.SdkStoragePool_OPERATION_RESIZE { - errMsg = fmt.Sprintf("%s %s %s", errMsg, op.Msg) + errMsg = fmt.Sprintf("%s %s", errMsg, op.Msg) } }