The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2489

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: Christian Brauner <christian.brau...@canonical.com>
From 874f11698ac725b01c88e27e7837c2ab887bc299 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@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.brau...@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
        }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to