Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix linting issues #194

Merged
merged 1 commit into from
Nov 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: fix linting issues
  • Loading branch information
marinsalinas committed Nov 24, 2020
commit 8cab4003b6db16bafeaa38a1f6dad9ef1dc27d78
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ func CheckResponse(r *http.Response) error {

// Nutanix returns non-json response with code 401 when
// invalid credentials are used
if c == 401 {
return fmt.Errorf("Invalid Nutanix Credentials")
if c == http.StatusNotFound {
return fmt.Errorf("invalid Nutanix Credentials")
}

buf, err := ioutil.ReadAll(r.Body)
Expand Down