The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6403
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From d3e1893e2aa030d9c39c66defd9ff8e5421918c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 5 Nov 2019 08:51:54 -0500 Subject: [PATCH] lxc/init: Properly handle errors with --empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxc/init.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxc/init.go b/lxc/init.go index 2a70dcea43..4a1cee0948 100644 --- a/lxc/init.go +++ b/lxc/init.go @@ -305,6 +305,11 @@ func (c *cmdInit) create(conf *config.Config, args []string) (lxd.InstanceServer return nil, "", err } + err = op.Wait() + if err != nil { + return nil, "", err + } + opInfo = op.Get() }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel