Pass runtime args to runtime delete call from shim

Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
Darren Shepherd 2016-04-26 11:14:18 -07:00
parent 0e9e24c647
commit 2347cc9dc3

View file

@ -205,7 +205,7 @@ func (p *process) pid() int {
func (p *process) delete() error {
if !p.state.Exec {
out, err := exec.Command(p.runtime, "delete", p.id).CombinedOutput()
out, err := exec.Command(p.runtime, append(p.state.RuntimeArgs, "delete", p.id)...).CombinedOutput()
if err != nil {
return fmt.Errorf("%s: %v", out, err)
}