You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/01/08 10:46:57 UTC

[camel-k] branch release-1.3.x updated: Fix modeline check.

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 <gh...@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