From 89d2e600233c301002ab9c6a9f7db9f4fd2071f6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 22 Jun 2018 20:50:19 +0200 Subject: vm/gvisor: fix empty runsc_args --- vm/gvisor/gvisor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm/gvisor') 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{ -- cgit mrf-deployment