Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions cmd/api/v2/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v2
import (
"fmt"

v1 "github.com/metal-stack/api/go/metalstack/api/v2"
v2 "github.com/metal-stack/api/go/metalstack/api/v2"
"github.com/metal-stack/cli/cmd/config"
"github.com/spf13/cobra"
)
Expand All @@ -17,7 +17,7 @@ func newHealthCmd(c *config.Config) *cobra.Command {
ctx, cancel := c.NewRequestContext()
defer cancel()

resp, err := c.Client.Apiv2().Health().Get(ctx, &v1.HealthServiceGetRequest{})
resp, err := c.Client.Apiv2().Health().Get(ctx, &v2.HealthServiceGetRequest{})
if err != nil {
return fmt.Errorf("failed to get health: %w", err)
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/api/v2/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package v2
import (
"fmt"

v1 "github.com/metal-stack/api/go/metalstack/api/v2"
v2 "github.com/metal-stack/api/go/metalstack/api/v2"
"github.com/metal-stack/cli/cmd/config"
"github.com/metal-stack/v"
"github.com/spf13/cobra"
)

type version struct {
Client string
Server *v1.Version
Server *v2.Version
}

func newVersionCmd(c *config.Config) *cobra.Command {
Expand All @@ -27,7 +27,7 @@ func newVersionCmd(c *config.Config) *cobra.Command {
Client: v.V.String(),
}

resp, err := c.Client.Apiv2().Version().Get(ctx, &v1.VersionServiceGetRequest{})
resp, err := c.Client.Apiv2().Version().Get(ctx, &v2.VersionServiceGetRequest{})
if err == nil {
v.Server = resp.Version
}
Expand Down