[lxc-devel] [lxd/master] client: Copy volume config and description

stgraber on Github lxc-bot at linuxcontainers.org
Thu Apr 18 19:32:45 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190418/f2fd4a0e/attachment.bin>
-------------- next part --------------
From 24838721a6f14539e7273c2ea0de79f423c96901 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 18 Apr 2019 13:26:02 -0400
Subject: [PATCH] client: Copy volume config and description
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #5640

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 client/lxd_storage_volumes.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/client/lxd_storage_volumes.go b/client/lxd_storage_volumes.go
index f0f3f61328..c405f12102 100644
--- a/client/lxd_storage_volumes.go
+++ b/client/lxd_storage_volumes.go
@@ -375,6 +375,8 @@ func (r *ProtocolLXD) CopyStoragePoolVolume(pool string, source ContainerServer,
 			VolumeOnly: args.VolumeOnly,
 		},
 	}
+	req.Config = volume.Config
+	req.Description = volume.Description
 
 	if r == source {
 		// Send the request


More information about the lxc-devel mailing list