F #1880: check_capacity disabled for importing vCenter images

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

No files matched your search

@@ -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
@@ -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"