Skip to content

Commit

Permalink
fix wrong syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
diceone authored Dec 28, 2021
1 parent 5c6fa83 commit c12697c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icinga2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *WebClient) GetService(name string) (Service, error) {
case 200:
return serviceResults.Results[0].Service, nil
}
return Service{}, fmt.Errorf("Got http error: %d: %w", resp.HttpResponse().StatusCodem, ErrUnknown)
return Service{}, fmt.Errorf("Got http error: %d: %w", resp.HttpResponse().StatusCode, ErrUnknown)
}

func (s *WebClient) CreateService(service Service) error {
Expand Down

0 comments on commit c12697c

Please sign in to comment.