From a302751dc9fa63a0e31f6e99f4d273baca078fb2 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Thu, 19 Dec 2024 17:21:27 -0600 Subject: [PATCH] lxd: Remove storagePoolVolumeUpdateUsers from reverter The function now reverts itself Signed-off-by: Wesley Hershberger --- lxd/storage_volumes.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lxd/storage_volumes.go b/lxd/storage_volumes.go index 2909cddb56fe..6231ee5a880d 100644 --- a/lxd/storage_volumes.go +++ b/lxd/storage_volumes.go @@ -1924,10 +1924,6 @@ func storagePoolVolumeTypePostMove(s *state.State, r *http.Request, poolName str return err } - revert.Add(func() { - _ = storagePoolVolumeUpdateUsers(s, projectName, newPool.Name(), &newVol, pool.Name(), vol) - }) - // Provide empty description and nil config to instruct CreateCustomVolumeFromCopy to copy it // from source volume. err = newPool.CreateCustomVolumeFromCopy(projectName, requestProjectName, newVol.Name, "", nil, pool.Name(), vol.Name, true, op)