Revision b66de4f7

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
753 753
        device_change = []
754 754

  
755 755
        # Extract disk from driver action
756
        disk = drv_action.retrieve_xmlelements("TEMPLATE/DISK[ATTACH='YES']").first
756
        disk = one_item.retrieve_xmlelements("TEMPLATE/DISK[ATTACH='YES']").first
757 757

  
758 758
        # Check if disk being attached is already connected to the VM
759 759
        raise "DISK is already connected to VM" if disk_attached_to_vm(disk)

Also available in: Unified diff