Skip to content

Commit

Permalink
fix oc describe suggestion in oc rsh output
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Aug 31, 2016
1 parent cb803de commit 0ad5e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) *
Message: "Troubleshooting and Debugging Commands:",
Commands: []*cobra.Command{
cmd.NewCmdLogs(cmd.LogsRecommendedName, fullName, f, out),
cmd.NewCmdRsh(cmd.RshRecommendedName, fullName, f, in, out, errout),
cmd.NewCmdRsh(fullName, cmd.RshRecommendedName, fullName, f, in, out, errout),
rsync.NewCmdRsync(rsync.RsyncRecommendedName, fullName, f, out, errout),
cmd.NewCmdPortForward(fullName, f, out, errout),
cmd.NewCmdDebug(fullName, f, in, out, errout),
Expand Down
5 changes: 3 additions & 2 deletions pkg/cmd/cli/cmd/rsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type RshOptions struct {
}

// NewCmdRsh returns a command that attempts to open a shell session to the server.
func NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, out, err io.Writer) *cobra.Command {
func NewCmdRsh(fullName string, name string, parent string, f *clientcmd.Factory, in io.Reader, out, err io.Writer) *cobra.Command {
options := &RshOptions{
ForceTTY: false,
DisableTTY: false,
Expand All @@ -71,7 +71,8 @@ func NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, o
Stdin: true,
},

Executor: &kubecmd.DefaultRemoteExecutor{},
FullCmdName: fullName,
Executor: &kubecmd.DefaultRemoteExecutor{},
},
}

Expand Down

0 comments on commit 0ad5e76

Please sign in to comment.