lib/fog/vsphere/requests/compute/create_vm.rb in fog-1.8.0 vs lib/fog/vsphere/requests/compute/create_vm.rb in fog-1.9.0
- old
+ new
@@ -73,11 +73,11 @@
:sharedBus => :noSharing
)
}
end
- def create_disk disk, index = 0, operation = :add, controller_key = 1000, unit_id = 0
+ def create_disk disk, index = 0, operation = :add, controller_key = 1000
{
:operation => operation,
:fileOperation => :create,
:device => RbVmomi::VIM.VirtualDisk(
:key => index,
@@ -85,10 +85,10 @@
:fileName => "[#{disk.datastore}]",
:diskMode => disk.mode.to_sym,
:thinProvisioned => disk.thin
),
:controllerKey => controller_key,
- :unitNumber => unit_id,
+ :unitNumber => index,
:capacityInKB => disk.size
)
}
end
\ No newline at end of file