Skip to content

Commit

Permalink
Flexgroup destroy REST fix
Browse files Browse the repository at this point in the history
Modify REST call to fix flexgroup destroy call
  • Loading branch information
torirevilla authored Oct 19, 2023
1 parent 1d0facc commit d343e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage_drivers/ontap/api/ontap_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d343e9d

Please sign in to comment.