Skip to content

Commit

Permalink
fix: Prevent mount point volid to change on host edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Manisha15 committed Aug 1, 2024
1 parent 7c285cb commit 8b2a90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/foreman_fog_proxmox/proxmox_volumes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def volume_exists?(vm, volume_attributes)
return false unless disk

# Return boolean if disk of type hard_disk, cloud_init, cdrom or rootfs(LXC container) exists
if disk.hard_disk? || disk.cloud_init? || disk.rootfs?
if disk.hard_disk? || disk.cloud_init? || disk.rootfs? || disk.mount_point?
volume_attributes['volid'].present?
elsif disk.cdrom?
volume_attributes['cdrom'].present?
Expand Down

0 comments on commit 8b2a90a

Please sign in to comment.