Skip to content

Commit

Permalink
fix(hwaas): dont error on deleting nonexistent drive
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Wienand <[email protected]>
  • Loading branch information
Fabian Wienand committed Apr 16, 2024
1 parent 5dc0f74 commit b0b0fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/teststeps/hwaas/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func (ts *TestStep) deleteDrive(ctx xcontext.Context) error {
switch resp.StatusCode {
case http.StatusOK:
break
case http.StatusNotFound:
fmt.Print("drive does not exist.\n")
case http.StatusGone:
fmt.Print("drive does not exist anymore.\n")
default:
Expand Down

0 comments on commit b0b0fbc

Please sign in to comment.