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

Merge pull request #1437 from ohadlevy/vsphere-multi-disk

[vsphere] allow to create a vm with multiple disks.
This commit is contained in:
Ohad Levy 2013-01-02 04:37:37 -08:00
commit 8a228eb9c7

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
)
}