From 5c4740d44c241c16749e87d0576e091a7e150bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Fri, 17 Mar 2023 10:15:12 +0100 Subject: [PATCH] fix(placement-group): invalid json response #464 (#465) --- internal/cmd/placementgroup/describe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/placementgroup/describe.go b/internal/cmd/placementgroup/describe.go index d1e298c5..1876e483 100644 --- a/internal/cmd/placementgroup/describe.go +++ b/internal/cmd/placementgroup/describe.go @@ -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)