Revision 918bce77 src/vmm_mad/remotes/lib/vcenter_driver/importer.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/importer.rb
74 74

  
75 75
        STDOUT.print "done!\n"
76 76

  
77
        # Create OpenNebula pools
78
        dpool = VCenterDriver::VIHelper.one_pool(OpenNebula::DatastorePool)
79
        ipool = VCenterDriver::VIHelper.one_pool(OpenNebula::ImagePool)
80

  
81
        # Get vcenter intance uuid as moref is unique for each vcenter
82
        vc_uuid = vi_client.vim.serviceContent.about.instanceUuid
83

  
77 84
        rs.each {|dc, tmps|
78 85
            STDOUT.print "\nDo you want to process datacenter #{dc}"\
79 86
                            " (y/[n])? "
......
95 102

  
96 103
                next if STDIN.gets.strip.downcase != 'y'
97 104

  
105
=begin
106
                ## Add existing disks to template (OPENNEBULA_MANAGED)
107

  
108
                template = t[:template]
109

  
110
                error, template_disks = template.import_vcenter_disks(vc_uuid,
111
                                                                      dpool,
112
                                                                      ipool)
113
                if error.empty?
114
                    t[:one] << template_disks
115
                else
116
                    STDOUT.puts error
117
                    next
118
                end
119
=end
98 120

  
121
                # Datastore placement
99 122
                ds_input = ""
100 123

  
101 124
                STDOUT.print "\n    This template is currently set to be "\
......
246 269
                        end
247 270

  
248 271
                        list_str = "\n    [Index] Resource pool :"\
249
                                    "\n    #{dashes}\n"
272
                                   "\n    #{dashes}\n"
250 273

  
251 274
                        STDOUT.print list_str
252 275

  

Also available in: Unified diff