Skip to content

Commit

Permalink
fix(placement-group): invalid json response #464 (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote authored Mar 17, 2023
1 parent 940fc1e commit 5c4740d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/placementgroup/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
var DescribeCmd = base.DescribeCmd{
ResourceNameSingular: "placement group",
ShortDescription: "Describe a placement group",
JSONKeyGetByID: "placement group",
JSONKeyGetByName: "placement groups",
JSONKeyGetByID: "placement_group",
JSONKeyGetByName: "placement_groups",
NameSuggestions: func(c hcapi2.Client) func() []string { return c.PlacementGroup().Names },
Fetch: func(ctx context.Context, client hcapi2.Client, cmd *cobra.Command, idOrName string) (interface{}, *hcloud.Response, error) {
return client.PlacementGroup().Get(ctx, idOrName)
Expand Down

0 comments on commit 5c4740d

Please sign in to comment.