From bfdd69289eaae5e0562830116d1e67b5d173eaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 29 Jan 2024 13:31:20 -0500 Subject: [PATCH] incusd/db: Fix error handling in CreateNetworkPeer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- internal/server/db/network_peers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/db/network_peers.go b/internal/server/db/network_peers.go index fd9216bdf6f..0ef8512e334 100644 --- a/internal/server/db/network_peers.go +++ b/internal/server/db/network_peers.go @@ -110,7 +110,7 @@ func (c *ClusterTx) CreateNetworkPeer(ctx context.Context, networkID int64, info } } - return localPeerID, targetPeerNetworkID > -1, err + return localPeerID, targetPeerNetworkID > -1, nil } // networkPeerConfigAdd inserts Network peer config keys.