Fix session ended hint for kubectl run

pull/6/head
Janet Kuo 2016-04-15 17:28:03 -07:00
parent ed87db5040
commit fe4b16c8aa
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ func handleAttachPod(f *cmdutil.Factory, c *client.Client, pod *api.Pod, opts *A
opts.Client = c
opts.PodName = pod.Name
opts.Namespace = pod.Namespace
opts.CommandName = "kubectl attach"
if err := opts.Run(); err != nil {
fmt.Fprintf(opts.Out, "Error attaching, falling back to logs: %v\n", err)
req, err := f.LogsForObject(pod, &api.PodLogOptions{Container: opts.GetContainerName(pod)})