diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-22 20:50:19 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-22 20:50:19 +0200 |
| commit | 89d2e600233c301002ab9c6a9f7db9f4fd2071f6 (patch) | |
| tree | 4240a0219f6ce891fc99cf4a33f00192ae26c4c8 /vm/gvisor/gvisor.go | |
| parent | b9c7c31970e88d97e0d30554e778d35432d84d1d (diff) | |
vm/gvisor: fix empty runsc_args
Diffstat (limited to 'vm/gvisor/gvisor.go')
| -rw-r--r-- | vm/gvisor/gvisor.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index a6bc4828e..76e7a2213 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -185,7 +185,9 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd { "-root", inst.rootDir, "-network=none", } - args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...) + if inst.cfg.RunscArgs != "" { + args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...) + } args = append(args, add...) cmd := osutil.Command(inst.image, args...) cmd.Env = []string{ |
