Skip to content

Commit

Permalink
lxd/storage_volumes: Allow rename of all remote storage vols if clust…
Browse files Browse the repository at this point in the history
…er member is offline

This check was hardcoded to work only with the Ceph RBD storage driver as it was the
only remote storage driver before we have added support for Dell PowerFlex.

Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Aug 28, 2024
1 parent a43f9e8 commit 10cc4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/storage_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ func storagePoolVolumePost(d *Daemon, r *http.Request) response.Response {
return resp
}

if details.pool.Driver().Info().Name == "ceph" {
if details.pool.Driver().Info().Remote {
var dbVolume *db.StorageVolume
var volumeNotFound bool
var targetIsSet bool
Expand Down

0 comments on commit 10cc4cb

Please sign in to comment.