1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vsphere] allow to create a vm with multiple disks.

unitNumber has to be unique.
This commit is contained in:
Ohad Levy 2012-12-27 16:55:32 +02:00 committed by Ohad Levy
parent 9aec2ceb7b
commit 847d5aa497

View file

@ -75,7 +75,7 @@ module Fog
}
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,
@ -87,7 +87,7 @@ module Fog
:thinProvisioned => disk.thin
),
:controllerKey => controller_key,
:unitNumber => unit_id,
:unitNumber => index,
:capacityInKB => disk.size
)
}