Fix pod exec options

Change the command field to an array of strings.
This commit is contained in:
Cesar Wong
2015-05-04 16:21:03 -04:00
parent 1b7749b8d9
commit 283049f679
8 changed files with 37 additions and 15 deletions

View File

@@ -261,7 +261,9 @@ func ExecLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, c
if opts.TTY {
params.Add(api.ExecTTYParam, "1")
}
params.Add("command", opts.Command)
for _, c := range opts.Command {
params.Add("command", c)
}
loc := &url.URL{
Scheme: nodeScheme,
Host: fmt.Sprintf("%s:%d", nodeHost, nodePort),