The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2437
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 8f856e40d65f3c3e2f60c7d945e11fcf27e7cbc3 Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Thu, 29 Sep 2016 22:13:22 +0000 Subject: [PATCH] allow nil network config Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- lxd/networks.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/networks.go b/lxd/networks.go index c27b12d..a85a0dd 100644 --- a/lxd/networks.go +++ b/lxd/networks.go @@ -84,6 +84,10 @@ func networksPost(d *Daemon, r *http.Request) Response { return BadRequest(fmt.Errorf("The network already exists")) } + if req.Config == nil { + req.Config = map[string]string{} + } + err = networkValidateConfig(req.Name, req.Config) if err != nil { return BadRequest(err)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel