This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push: new 489ed4499 fix(cli): skip k8s lookup when dry-run 489ed4499 is described below commit 489ed44993e2d29b478b2315042126c1bcfe5850 Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Thu Jul 13 08:42:31 2023 +0200 fix(cli): skip k8s lookup when dry-run Closes #4566 Closes #4543 --- pkg/cmd/run.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go index 6b8f22113..7fd27fca3 100644 --- a/pkg/cmd/run.go +++ b/pkg/cmd/run.go @@ -747,8 +747,10 @@ func (o *runCmdOptions) parseAndConvertToTrait(cmd *cobra.Command, if err != nil { return err } - if err := parseConfig(o.Context, cmd, c, config, integration); err != nil { - return err + if o.OutputFormat == "" { + if err := parseConfig(o.Context, cmd, c, config, integration); err != nil { + return err + } } o.Traits = append(o.Traits, convertToTrait(convert(config), traitParam)) }