Skip to content

Commit

Permalink
fix: SDK breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Apr 6, 2021
1 parent 2a9312f commit 24e7742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/health_alive.go
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/spf13/cobra"

"github.com/ory/oathkeeper/internal/httpclient/client/health"
"github.com/ory/oathkeeper/internal/httpclient/client/api"

"github.com/ory/x/cmdx"
)
Expand All @@ -25,7 +25,7 @@ Note:
Run: func(cmd *cobra.Command, args []string) {
client := newClient(cmd)

r, err := client.Health.IsInstanceAlive(health.NewIsInstanceAliveParams())
r, err := client.API.IsInstanceAlive(api.NewIsInstanceAliveParams())
// If err, print err and exit 1
cmdx.Must(err, "%s", err)
// Print payload
Expand Down
5 changes: 2 additions & 3 deletions cmd/health_ready.go
Expand Up @@ -6,8 +6,7 @@ import (

"github.com/spf13/cobra"

"github.com/ory/oathkeeper/internal/httpclient/client/health"

"github.com/ory/oathkeeper/internal/httpclient/client/api"
"github.com/ory/x/cmdx"
)

Expand All @@ -25,7 +24,7 @@ Note:
Run: func(cmd *cobra.Command, args []string) {
client := newClient(cmd)

r, err := client.Health.IsInstanceReady(health.NewIsInstanceReadyParams())
r, err := client.API.IsInstanceReady(api.NewIsInstanceReadyParams())
// If err, print err and exit 1
cmdx.Must(err, "%s", err)
// Print payload
Expand Down

0 comments on commit 24e7742

Please sign in to comment.