The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8140
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 #8119 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 2808a54b6644beffd7b80b0601f14f3ce3927f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 10 Nov 2020 19:46:10 -0500 Subject: [PATCH] lxd/storage: Expand local config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #8119 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/storage_pools_utils.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lxd/storage_pools_utils.go b/lxd/storage_pools_utils.go index c5a1234372..57cc08b74f 100644 --- a/lxd/storage_pools_utils.go +++ b/lxd/storage_pools_utils.go @@ -104,6 +104,13 @@ func storagePoolCreateLocal(state *state.State, id int64, req api.StoragePoolsPo var updatedReq api.StoragePoolsPost shared.DeepCopy(&req, &updatedReq) + // Fill in the defaults. + err := storagePoolFillDefault(updatedReq.Name, updatedReq.Driver, updatedReq.Config) + if err != nil { + return nil, err + } + + // Create the pool. pool, err := storagePools.CreatePool(state, id, &updatedReq, isNotification, nil) if err != nil { return nil, err
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel