Revision efcd7598 src/vmm_mad/remotes/lib/vcenter_driver/importer.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/importer.rb
34 34
        wild     = true
35 35
        sunstone = false
36 36

  
37
        error, template_disks = vcenter_vm.import_vcenter_disks(vc_uuid, dpool, ipool, sunstone)
38
        return OpenNebula::Error.new(error) if !error.empty?
37
        #error, template_disks = vcenter_vm.import_vcenter_disks(vc_uuid, dpool, ipool, sunstone)
38
        #return OpenNebula::Error.new(error) if !error.empty?
39 39

  
40
        template << template_disks
40
        #template << template_disks
41 41

  
42 42
        # Create images or get nics information for template
43
        error, template_nics = vcenter_vm.import_vcenter_nics(vc_uuid,
44
                                                              npool,
45
                                                              hpool,
46
                                                              vc_name,
47
                                                              vm_ref,
48
                                                              wild,
49
                                                              sunstone,
50
                                                              vm_name)
51

  
52
        return OpenNebula::Error.new(error) if !error.empty?
53

  
54
        template << template_nics
43
        #error, template_nics = vcenter_vm.import_vcenter_nics(vc_uuid,
44
        #                                                      npool,
45
        #                                                      hpool,
46
        #                                                      vc_name,
47
        #                                                      vm_ref,
48
        #                                                      wild,
49
        #                                                      sunstone,
50
        #                                                      vm_name)
51
#
52
        #return OpenNebula::Error.new(error) if !error.empty?
53

  
54
        #template << template_nics
55 55

  
56 56
        rc = one_vm.allocate(template)
57 57
        return rc if OpenNebula.is_error?(rc)

Also available in: Unified diff