Skip to content

Commit

Permalink
update for changes in cfservices
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Sep 2, 2018
1 parent d5e23d4 commit f24ce61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func CreateCloudClientForService(name string) (*ConfigClient, error) {

// GetCloudCredentials retrieves the Config Server's credentials so an OAuth2 client can be created.
func GetCloudCredentials(name string) (*cfservices.ServiceCredentials, error) {
vcapServices := cfservices.GetServices()
serviceCreds, err := cfservices.GetServiceCredentials(name, vcapServices)
serviceCreds, err := cfservices.GetServiceCredentialsFromEnvironment(name)
if err != nil {
return nil, errors.Wrapf(err, "failed to get credentials for the Config Server service %s", name)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/Piszmog/cloudconfigclient

require (
github.com/Piszmog/cfservices v1.3.0
github.com/Piszmog/cfservices v1.3.1
github.com/golang/protobuf v1.1.0 // indirect
github.com/pkg/errors v0.8.0
golang.org/x/net v0.0.0-20180808004115-f9ce57c11b24
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Piszmog/cfservices v1.3.0 h1:fYp2fe/CaYUI71gdcLMzs7XLy2VHb+NwdUonJOpMfac=
github.com/Piszmog/cfservices v1.3.0/go.mod h1:uxLe5gKNnODE9Bt1aJd5WjaeTg8/Qr6Dibd1wFgfAwk=
github.com/Piszmog/cfservices v1.3.1 h1:xiX4kjYJUxJYUBDgUJ+OgdqUsLX48yFq8YMZs/gdGyE=
github.com/Piszmog/cfservices v1.3.1/go.mod h1:uxLe5gKNnODE9Bt1aJd5WjaeTg8/Qr6Dibd1wFgfAwk=
github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/net v0.0.0-20180808004115-f9ce57c11b24 h1:mEsFm194MmS9vCwxFy+zwu0EU7ZkxxMD1iH++vmGdUY=
Expand Down

0 comments on commit f24ce61

Please sign in to comment.