Skip to content

Commit

Permalink
fix scope arg encoding
Browse files Browse the repository at this point in the history
the auto generated client does not handle well when scope is a pointer
  • Loading branch information
FrancoisPoinsot committed Jul 26, 2023
1 parent 9d43143 commit 8d8a21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pipeline-template/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewListCmd(pipelineTemplateOptions *pipelineTemplateOptions) *cobra.Command

func listPipelineTemplate(cmd *cobra.Command, options *listOptions) error {
successPayload, resp, err := options.GateClient.V2PipelineTemplatesControllerApi.ListUsingGET1(options.GateClient.Context,
&gate.V2PipelineTemplatesControllerApiListUsingGET1Opts{Scopes: optional.NewInterface(options.scopes)})
&gate.V2PipelineTemplatesControllerApiListUsingGET1Opts{Scopes: optional.NewInterface(*options.scopes)})
if err != nil {
return err
}
Expand Down

0 comments on commit 8d8a21f

Please sign in to comment.