From d343e9df6bc7fb2e12618d4dbc6d4b2a367ac05e Mon Sep 17 00:00:00 2001 From: Tori Revilla Date: Thu, 19 Oct 2023 09:28:44 -0400 Subject: [PATCH] Flexgroup destroy REST fix Modify REST call to fix flexgroup destroy call --- storage_drivers/ontap/api/ontap_rest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage_drivers/ontap/api/ontap_rest.go b/storage_drivers/ontap/api/ontap_rest.go index 0482ef39d..342f19b09 100644 --- a/storage_drivers/ontap/api/ontap_rest.go +++ b/storage_drivers/ontap/api/ontap_rest.go @@ -3882,7 +3882,8 @@ func (c RestClient) FlexGroupDestroy(ctx context.Context, name string) error { return err } if volume == nil || volume.UUID == nil { - return fmt.Errorf("unexpected response from volume lookup") + Logc(ctx).Warnf("volume %s may already be deleted, unexpected response from volume lookup", name) + return nil } params := storage.NewVolumeDeleteParamsWithTimeout(c.httpClient.Timeout) params.Context = ctx