Skip to content

Commit

Permalink
standardize call to liberr.New
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Feb 21, 2024
1 parent 8cd2a06 commit 9063c64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/provider/container/ovirt/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ func (r *Collector) HasParity() bool {
func (r *Collector) Test() (status int, err error) {
_, status, err = r.client.system()
if status != http.StatusOK {
err = liberr.New(
fmt.Sprintf("status: %d", status))
err = liberr.New("got status != 200 from oVirt", "status", status)
}

return
Expand Down

0 comments on commit 9063c64

Please sign in to comment.