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:
parent
9aec2ceb7b
commit
847d5aa497
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue