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

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: Tycho Andersen <tycho.ander...@canonical.com>
From bfeaf76a039ff273bb3660ad321b6babf1da7c77 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.ander...@canonical.com>
Date: Tue, 2 Aug 2016 17:30:28 -0600
Subject: [PATCH] actually handle containers list error

Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
---
 lxd/devices.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxd/devices.go b/lxd/devices.go
index 529450d..ddbcc63 100644
--- a/lxd/devices.go
+++ b/lxd/devices.go
@@ -203,6 +203,10 @@ func deviceTaskBalance(d *Daemon) {
 
        // Iterate through the containers
        containers, err := dbContainersList(d.db, cTypeRegular)
+       if err != nil {
+               shared.Log.Error("problem loading containers list", 
log.Ctx{"err": err})
+               return
+       }
        fixedContainers := map[int][]container{}
        balancedContainers := map[container]int{}
        for _, name := range containers {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to