Revision 400f5126 src/vmm_mad/remotes/lib/vcenter_driver/importer.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/importer.rb
34 34
                next
35 35
            end
36 36

  
37
            clusters.each{ |c|
38
                imported_name = "#{c["name"]}"
39
                STDOUT.print "  * Import cluster #{imported_name} (y/[n])? "
37
            clusters.each{ |cluster|
38
                STDOUT.print "  * Import cluster #{cluster[:cluster_name]} (y/[n])? "
40 39

  
41 40
                next if STDIN.gets.strip.downcase != 'y'
42 41

  
43
                one_host = VCenterDriver::ClusterComputeResource.to_one(imported_name,
44
                                                                        con_ops[:host],
45
                                                                        con_ops[:user],
46
                                                                        con_ops[:password],
47
                                                                        c['_ref'],
48
                                                                        vc_uuid,
49
                                                                        vc_version)
42
                one_host = VCenterDriver::ClusterComputeResource.to_one(cluster,
43
                                                                        con_ops)
50 44

  
51
                STDOUT.puts "    OpenNebula host #{imported_name} with "\
45
                STDOUT.puts "    OpenNebula host #{cluster[:cluster_name]} with "\
52 46
                            " id #{one_host.id} successfully created."
53 47
                STDOUT.puts
54 48
            }

Also available in: Unified diff