Skip to content

Commit

Permalink
lxd: Remove storagePoolVolumeUpdateUsers from reverter
Browse files Browse the repository at this point in the history
The function now reverts itself

Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Dec 20, 2024
1 parent 1771296 commit a302751
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lxd/storage_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a302751

Please sign in to comment.