Skip to content

Commit

Permalink
Fix hcloud server-type describe completion (#407)
Browse files Browse the repository at this point in the history
Closes #405

Signed-off-by: Lukas Kämmerling <[email protected]>

Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling authored Aug 16, 2022
1 parent 82321bf commit 11e0413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/servertype/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var describeCmd = base.DescribeCmd{
ShortDescription: "Describe a server type",
JSONKeyGetByID: "server_type",
JSONKeyGetByName: "server_types",
NameSuggestions: func(c hcapi2.Client) func() []string { return c.Image().Names },
NameSuggestions: func(c hcapi2.Client) func() []string { return c.ServerType().Names },
Fetch: func(ctx context.Context, client hcapi2.Client, cmd *cobra.Command, idOrName string) (interface{}, *hcloud.Response, error) {
return client.ServerType().Get(ctx, idOrName)
},
Expand Down

0 comments on commit 11e0413

Please sign in to comment.