Skip to content

Commit

Permalink
fix duplicate command argument for plugin command execution (#831)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

During execution of CLI command extensions the command name ist used
twice as argument for calling the plugin.
  • Loading branch information
ikhandamirov authored Jun 28, 2024
1 parent c71aed4 commit 8eec363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/contexts/ocm/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (p *pluginImpl) Command(name string, reader io.Reader, writer io.Writer, cm
if err != nil {
return err
}
args = append(args, "--"+command.OptCliConfig, f.Name(), name)
args = append(args, "--"+command.OptCliConfig, f.Name())
}
args = append(append(args, name), cmdargs...)

Expand Down

0 comments on commit 8eec363

Please sign in to comment.