Merge pull request #217 from ibuildthecloud/delete-args

Pass runtime args to runtime delete call from shim
This commit is contained in:
Michael Crosby 2016-04-26 11:22:06 -07:00
commit 715ac711b8

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)
}