Skip to content

Commit

Permalink
fix wrong response status check
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed May 21, 2024
1 parent a00c560 commit d67392c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/appliance/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (a *Appliance) ApplianceSwitchPartition(ctx context.Context, id string) err
if err != nil {
return err
}
if response.StatusCode != http.StatusAccepted {
if response.StatusCode >= 400 {
return api.HTTPErrorResponse(response, fmt.Errorf("unexpected response: %s", response.Status))
}
return nil
Expand Down

0 comments on commit d67392c

Please sign in to comment.