1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #4913: The mkimage tm action cannot be performed on a Storage DRS SYSTEM datastore

This commit is contained in:
mcabrerizo 2017-04-17 17:04:56 +02:00
parent 47a5a6babe
commit f94d819f79

View File

@ -79,9 +79,11 @@ begin
img_name = "#{ds_volatile_dir}/#{vmid}/one-#{vmid}-#{disk_id}"
ds_vc = VCenterDriver::Datastore.new_from_ref(ds_ref, vi_client)
ds_vc = VCenterDriver::Storage.new_from_ref(ds_ref, vi_client)
ds_vc.create_virtual_disk(img_name, size, adapter_type, disk_type)
if ds_vc.class == VCenterDriver::Datastore
ds_vc.create_virtual_disk(img_name, size, adapter_type, disk_type)
end
rescue Exception => e
STDERR.puts "Error creating virtual disk in #{ds_vc['name']}."\