Skip to content

Commit

Permalink
Use ch.Request() while requesting server version
Browse files Browse the repository at this point in the history
[#153216915] credhub cli can return version from version endpoint
  • Loading branch information
Ashwin Venkatesh committed Dec 11, 2017
1 parent 53b6aea commit 5139988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credhub/server_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"

"github.com/cloudfoundry-incubator/credhub-cli/credhub/server"
version "github.com/hashicorp/go-version"
"github.com/hashicorp/go-version"
)

func (ch *CredHub) ServerVersion() (*version.Version, error) {
Expand All @@ -23,7 +23,7 @@ func (ch *CredHub) ServerVersion() (*version.Version, error) {
}

func (ch *CredHub) getVersion() (string, error) {
response, err := ch.request(ch.Client(), "GET", "/version", nil, nil)
response, err := ch.Request("GET", "/version", nil, nil)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 5139988

Please sign in to comment.