From c1bd0e3d5c35c91a85bc89df061c2ddb97d82169 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Thu, 19 Dec 2024 08:42:31 +0000 Subject: [PATCH] lxd/networks: Removes unused argument in doNetworkUpdate Signed-off-by: Thomas Parrott --- lxd/networks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxd/networks.go b/lxd/networks.go index c32d03abbfbe..6fd88c504344 100644 --- a/lxd/networks.go +++ b/lxd/networks.go @@ -1383,7 +1383,7 @@ func networkPut(d *Daemon, r *http.Request) response.Response { clientType := clusterRequest.UserAgentClientType(r.Header.Get("User-Agent")) - response := doNetworkUpdate(effectiveProjectName, n, req, targetNode, clientType, r.Method, s.ServerClustered) + response := doNetworkUpdate(n, req, targetNode, clientType, r.Method, s.ServerClustered) requestor := request.CreateRequestor(r) s.Events.SendLifecycle(effectiveProjectName, lifecycle.NetworkUpdated.Event(n, requestor, nil)) @@ -1436,7 +1436,7 @@ func networkPatch(d *Daemon, r *http.Request) response.Response { // doNetworkUpdate loads the current local network config, merges with the requested network config, validates // and applies the changes. Will also notify other cluster nodes of non-node specific config if needed. -func doNetworkUpdate(projectName string, n network.Network, req api.NetworkPut, targetNode string, clientType clusterRequest.ClientType, httpMethod string, clustered bool) response.Response { +func doNetworkUpdate(n network.Network, req api.NetworkPut, targetNode string, clientType clusterRequest.ClientType, httpMethod string, clustered bool) response.Response { if req.Config == nil { req.Config = map[string]string{} }