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