Skip to content

Commit

Permalink
stop using unsupported debug flag for plugins (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
VinozzZ authored Sep 26, 2022
1 parent 8b61fc1 commit ce94589
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/pkgmgmt/client/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"get.porter.sh/porter/pkg/portercontext"
"get.porter.sh/porter/pkg/tracing"
"go.opentelemetry.io/otel/attribute"
"go.uber.org/zap/zapcore"
)

type Runner struct {
Expand Down Expand Up @@ -76,10 +75,6 @@ func (r *Runner) Run(ctx context.Context, commandOpts pkgmgmt.CommandOptions) er
cmd.Args = append(cmd.Args, "-f", commandOpts.File)
}

if span.ShouldLog(zapcore.DebugLevel) {
cmd.Args = append(cmd.Args, "--debug")
}

if commandOpts.Input != "" {
stdin, err := cmd.StdinPipe()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (p *Porter) InstallPlugin(ctx context.Context, opts plugins.InstallOptions)

plugin, err := p.Plugins.GetMetadata(ctx, opts.Name)
if err != nil {
return err
return fmt.Errorf("failed to get plugin metadata: %w", err)
}

v := plugin.GetVersionInfo()
Expand Down

0 comments on commit ce94589

Please sign in to comment.