Revision dcffd52a src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
1272 1272
        ds_name  = ds['name']
1273 1273
        type     = disk["TYPE"]
1274 1274

  
1275
        # TODO: size_kb = 0 ??
1276
        size_kb = 0
1275
        size_kb = disk["SIZE"].to_i * 1024
1277 1276

  
1278 1277
        controller, new_number = find_free_controller(position)
1279 1278

  
......
1283 1282
                :fileName  => "[#{ds_name}] #{img_name}"
1284 1283
            )
1285 1284

  
1286
            cd = self['config.hardware.device'].select  do |hw|
1285
            cd = @item['config.hardware.device'].select  do |hw|
1287 1286
                hw.class == RbVmomi::VIM::VirtualCdrom
1288 1287
            end.first
1289 1288

  

Also available in: Unified diff