1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #1880: check_capacity disabled for importing vCenter images

This commit is contained in:
Sergio Semedi Barranco 2018-06-25 18:20:49 +02:00 committed by Ruben S. Montero
parent 3cd262eedd
commit 2ff0324bb2
2 changed files with 2 additions and 2 deletions

View File

@ -765,7 +765,7 @@ class ImageImporter < VCenterDriver::VcImporter
dsid = selected[:dsid].to_i
name = selected[:name]
rc = resource.allocate(info, dsid)
rc = resource.allocate(info, dsid, false)
VCenterDriver::VIHelper.check_error(rc, message)
resource.info

View File

@ -314,7 +314,7 @@ class Template
# Then the image is created as it's not in the datastore
one_i = VCenterDriver::VIHelper.new_one_item(OpenNebula::Image)
allocated_images << one_i
rc = one_i.allocate(image_import[:template], datastore_found['ID'].to_i)
rc = one_i.allocate(image_import[:template], datastore_found['ID'].to_i, false)
if OpenNebula.is_error?(rc)
error = " Error creating disk from template: #{rc.message}\n"