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

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 #8051

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 9ba0b5a029cbf659553ff5be801afe542a97e645 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Sun, 18 Oct 2020 22:50:26 -0400
Subject: [PATCH] lxd/db/networks: Fix NULL description
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #8051

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/db/networks.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/db/networks.go b/lxd/db/networks.go
index 3b10447bde..b2549cabd5 100644
--- a/lxd/db/networks.go
+++ b/lxd/db/networks.go
@@ -72,7 +72,7 @@ func (c *ClusterTx) GetNonPendingNetworkIDs() 
(map[string]int64, error) {
 //
 // Pending networks are skipped.
 func (c *ClusterTx) GetNonPendingNetworks() (map[string]map[int64]api.Network, 
error) {
-       stmt, err := c.tx.Prepare(`SELECT projects.name, networks.id, 
networks.name, networks.description, networks.type, networks.state
+       stmt, err := c.tx.Prepare(`SELECT projects.name, networks.id, 
networks.name, coalesce(networks.description, ''), networks.type, networks.state
                FROM networks
                JOIN projects on projects.id = networks.project_id
                WHERE networks.state != ?
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to