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

astefanutti pushed a commit to branch release-1.3.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/release-1.3.x by this push:
     new 2d0a6f3  Fix modeline check.
2d0a6f3 is described below

commit 2d0a6f3435e0e3dcac613c0f7cff96ec5b78860d
Author: Doru Bercea <gheorghe-teod.ber...@ibm.com>
AuthorDate: Mon Jan 4 13:27:39 2021 -0500

    Fix modeline check.
---
 pkg/cmd/modeline.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/modeline.go b/pkg/cmd/modeline.go
index 14258dc..50ff686 100644
--- a/pkg/cmd/modeline.go
+++ b/pkg/cmd/modeline.go
@@ -89,7 +89,7 @@ func createKamelWithModelineCommand(ctx context.Context, args 
[]string) (*cobra.
                return nil, nil, err
        }
 
-       isLocalCreate := target.Parent().Name() == localCmdName && 
target.Name() == createCmdName
+       isLocalCreate := target.Name() == createCmdName && 
target.Parent().Name() == localCmdName
 
        if target.Name() != runCmdName && !isLocalCreate {
                return rootCmd, args, nil

Reply via email to