Revision 70ec5da4

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/host.rb
360 360
            "config.extraConfig", #VM extraconfig info e.g opennebula.vm.running
361 361
            "config.hardware.numCPU",
362 362
            "config.hardware.memoryMB",
363
            "config.annotation"
363
            "config.annotation",
364
            "datastore"
364 365
        ]
365 366

  
366 367
        filterSpec = RbVmomi::VIM.PropertyFilterSpec(
src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
603 603
        str << "IMPORT_STATE =\"#{@state}\"\n"
604 604

  
605 605
        # Get DS information
606
        ds_folder = get_dc.datastore_folder
607
        ds_name   = self["config.datastoreUrl"][0].name
608
        ds_folder.fetch!
609
        ds_vcenter_ref = ds_folder.items.select{|_,d| d["name"] == ds_name}.values[0]["_ref"]
610
        str << "VCENTER_DS_REF = \"#{ds_vcenter_ref}\"\n"
606
        str << "VCENTER_DS_REF = \"#{@vm_info["datastore"].first._ref}\"\n"
611 607

  
612 608
        vnc_port = nil
613 609
        keymap = nil

Also available in: Unified diff