This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b76567  fix: Command execution fails with result must be a pointer
8b76567 is described below

commit 8b7656789dfa38e7b086151bb549c8efc2a4d626
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Thu Jan 23 08:10:18 2020 +0000

    fix: Command execution fails with result must be a pointer
    
    fixes #1221
---
 pkg/cmd/describe_kit.go      | 2 +-
 pkg/cmd/describe_platform.go | 2 +-
 pkg/cmd/kit_create.go        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/cmd/describe_kit.go b/pkg/cmd/describe_kit.go
index 11e9b7b..d0e4c19 100644
--- a/pkg/cmd/describe_kit.go
+++ b/pkg/cmd/describe_kit.go
@@ -38,7 +38,7 @@ func newDescribeKitCmd(rootCmdOptions *RootCmdOptions) 
(*cobra.Command, *describ
                Use:     "kit",
                Short:   "Describe an Integration Kit",
                Long:    `Describe an Integration Kit.`,
-               PreRunE: decode(options),
+               PreRunE: decode(&options),
                RunE: func(_ *cobra.Command, args []string) error {
                        if err := options.validate(args); err != nil {
                                return err
diff --git a/pkg/cmd/describe_platform.go b/pkg/cmd/describe_platform.go
index 0778ca4..5021422 100644
--- a/pkg/cmd/describe_platform.go
+++ b/pkg/cmd/describe_platform.go
@@ -38,7 +38,7 @@ func newDescribePlatformCmd(rootCmdOptions *RootCmdOptions) 
(*cobra.Command, *de
                Use:     "platform",
                Short:   "Describe an Integration Platform",
                Long:    `Describe an Integration Platform.`,
-               PreRunE: decode(options),
+               PreRunE: decode(&options),
                RunE: func(_ *cobra.Command, args []string) error {
                        if err := options.validate(args); err != nil {
                                return err
diff --git a/pkg/cmd/kit_create.go b/pkg/cmd/kit_create.go
index cb35495..cfec037 100644
--- a/pkg/cmd/kit_create.go
+++ b/pkg/cmd/kit_create.go
@@ -43,7 +43,7 @@ func newKitCreateCmd(rootCmdOptions *RootCmdOptions) 
(*cobra.Command, *kitCreate
                Short:   "Create an Integration Kit",
                Long:    `Create an Integration Kit.`,
                Args:    options.validateArgs,
-               PreRunE: decode(options),
+               PreRunE: decode(&options),
                RunE:    options.run,
        }
 

Reply via email to