Skip to content

Commit 1205721

Browse files
authored
Flexgroup destroy REST fix
Modify REST call to fix flexgroup destroy call
1 parent 7620dc2 commit 1205721

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage_drivers/ontap/api/ontap_rest.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3882,7 +3882,8 @@ func (c RestClient) FlexGroupDestroy(ctx context.Context, name string) error {
38823882
return err
38833883
}
38843884
if volume == nil || volume.UUID == nil {
3885-
return fmt.Errorf("unexpected response from volume lookup")
3885+
Logc(ctx).Warnf("volume %s may already be deleted, unexpected response from volume lookup", name)
3886+
return nil
38863887
}
38873888
params := storage.NewVolumeDeleteParamsWithTimeout(c.httpClient.Timeout)
38883889
params.Context = ctx

0 commit comments

Comments
 (0)