Revision 95fc9267 src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
1878 1878
                next
1879 1879
            end
1880 1880

  
1881
            img_name  = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'])
1881
            img_name  = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'], instantiated_as_persistent?)
1882 1882
            onevm_disks_vector << "#{img_name}"
1883 1883
        end
1884 1884

  
......
2120 2120
        return ds_ref, img_path
2121 2121
    end
2122 2122

  
2123
        # Get vcenter device representing DISK object (hotplug)
2123
    # Get vcenter device representing DISK object (hotplug)
2124 2124
    def disk_attached_to_vm(disk, unmanaged_keys, vc_disks)
2125 2125

  
2126 2126
        img_name = ""
......
2136 2136
            end
2137 2137

  
2138 2138
            # Alright let's see if we can find other devices only with the expected image name
2139
            img_name  = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'])
2139
            img_name  = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'], instantiated_as_persistent?)
2140 2140
            if d[:path_wo_ds] == "#{img_name}"
2141 2141
                device_found = d
2142 2142
                break
......
2147 2147
    end
2148 2148

  
2149 2149
    def calculate_add_disk_spec(disk, position=0)
2150
        img_name = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'])
2150
        img_name = VCenterDriver::FileHelper.get_img_name(disk, one_item['ID'], self['name'],instantiated_as_persistent?)
2151 2151
        type     = disk["TYPE"]
2152 2152
        size_kb  = disk["SIZE"].to_i * 1024
2153 2153

  

Also available in: Unified diff