From 601285abc1bd404943ec18413b4c45b283da28dd Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Thu, 13 Oct 2016 17:06:04 -0400 Subject: [PATCH] fix oc describe suggestion in oc rsh output `oc rsh ` outputs the line `defaulting container name to , use ' describe po/' cmd to see all containers in this pod`; however this suggestion is missing the root command (oc, kube, openshift cli ...) before `describe po/`. This patch adds the root command used to invoke the `rsh` command to this suggestion. `$ openshift cli rsh ` ``` defaulting container name to idling-tcp-echo, use 'openshift cli describe po/' to see all containers in this pod ``` --- pkg/cmd/cli/cmd/rsh.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/cli/cmd/rsh.go b/pkg/cmd/cli/cmd/rsh.go index ba8e8fe7bcb3..c26630c33fbe 100644 --- a/pkg/cmd/cli/cmd/rsh.go +++ b/pkg/cmd/cli/cmd/rsh.go @@ -74,7 +74,8 @@ func NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, o Stdin: true, }, - Executor: &kubecmd.DefaultRemoteExecutor{}, + FullCmdName: parent, + Executor: &kubecmd.DefaultRemoteExecutor{}, }, }