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:
parent
dc4e09d269
commit
5187740870
@ -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(/^\[(.*?)\] /, "")
|
||||
|
Loading…
Reference in New Issue
Block a user