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

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) ===
Closes #3169.

Signed-off-by: Christian Brauner <[email protected]>
From 98c7c9bad04e0d856b5fd78b721f0b64a76ee3bc Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Thu, 1 Jun 2017 10:00:01 +0200
Subject: [PATCH] patches: make sure localdevices are updated

Closes #3169.

Signed-off-by: Christian Brauner <[email protected]>
---
 lxd/patches.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/patches.go b/lxd/patches.go
index e535da705..64bcc2fe3 100644
--- a/lxd/patches.go
+++ b/lxd/patches.go
@@ -1793,7 +1793,6 @@ func updatePoolPropertyForAllObjects(d *Daemon, poolName 
string, allcontainers [
                k, _, _ = containerGetRootDiskDevice(localDevices)
                if k != "" {
                        localDevices[k]["pool"] = poolName
-                       args.Devices = localDevices
                } else {
                        rootDev := map[string]string{}
                        rootDev["type"] = "disk"
@@ -1814,6 +1813,7 @@ func updatePoolPropertyForAllObjects(d *Daemon, poolName 
string, allcontainers [
 
                        localDevices[rootDevName] = rootDev
                }
+               args.Devices = localDevices
 
                err = c.Update(args, false)
                if err != nil {
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to