1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Update vm_template.rb

This commit is contained in:
Tino Vázquez 2019-01-08 15:43:56 +01:00
parent dc4e09d269
commit 5187740870

View File

@ -593,7 +593,7 @@ class Template
if is_disk_or_iso?(device)
disk[:device] = device
raise "not datastore found" unless device.backing.datastore
raise "datastore not found for VM's device" unless device.backing.datastore
disk[:datastore] = device.backing.datastore
disk[:path] = device.backing.fileName
disk[:path_wo_ds]= disk[:path].sub(/^\[(.*?)\] /, "")