mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
1 parent
052a06d5f7
commit
ca5b1f7210
1 file changed
+3
-5
@@ -1247,11 +1247,9 @@ class VirtualMachine < VCenterDriver::Template
|
||||
persistent = VCenterDriver::VIHelper.find_persistent_image_by_source(source, ipool)
|
||||
|
||||
if !persistent
|
||||
detach_disk_array << {
|
||||
:fileOperation => :destroy,
|
||||
:operation => :remove,
|
||||
:device => d[:device]
|
||||
}
|
||||
op = {operation: :remove, device: d[:device]}
|
||||
op[:fileOperation] = :destroy unless d[:type] == "CDROM"
|
||||
detach_disk_array << op
|
||||
end
|
||||
|
||||
# Remove reference opennebula.disk if exist
|
||||
|
||||
Reference in new issue
Block a user