[lxc-devel] [lxd/master] lxd/container_lxc: record the err from go-lxc
brauner on Github
lxc-bot at linuxcontainers.org
Wed Oct 12 18:46:39 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 367 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161012/5c987c27/attachment.bin>
-------------- next part --------------
From 874f11698ac725b01c88e27e7837c2ab887bc299 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Wed, 12 Oct 2016 20:45:31 +0200
Subject: [PATCH] lxd/container_lxc: record the err from go-lxc
Signed-off-by: Christian Brauner <christian.brauner at canonical.com>
---
lxd/container_lxc.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index e67eacc..830265d 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -1878,12 +1878,14 @@ func (c *containerLXC) Freeze() error {
// Load the go-lxc struct
err := c.initLXC()
if err != nil {
+ ctxMap["err"] = err
shared.LogError("Failed freezing container", ctxMap)
return err
}
err = c.c.Freeze()
if err != nil {
+ ctxMap["err"] = err
shared.LogError("Failed freezing container", ctxMap)
return err
}
More information about the lxc-devel
mailing list