Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18113 from juanvallejo/jvallejo/fix-oadm-cmd
Automatic merge from submit-queue (batch tested with PRs 18075, 17725, 16766, 18070, 18113). fix args passed to exec syscall Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1534315 The `oadm` top-level cmd made exec calls to `oc`, relaying its arguments to it. It failed to pass a "base" command argument, which meant that the first argument that it passed to `oc` was ignored/treated as the binary name in `oc`. This meant that every command relayed from `oadm` to `oc adm` would be executed without the `adm` arg, causing every command except `oadm version` to fail. What this also means is that this fix would break `oadm version` as there is no `oc adm version` sub-command: ``` $ oadm version DEPRECATED: The 'oadm' command is deprecated, please use 'oc adm' instead. error: unknown command "version" See 'oc adm -h' for help and examples. ``` cc @deads2k @soltysh
- Loading branch information