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/05 08:36:57 UTC

[camel-k] branch master updated: Fix modeline check.

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

astefanutti 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 c6a668c  Fix modeline check.
c6a668c is described below

commit c6a668c7489191e4fdc641980e3aaba474f0044c
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