mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #3989 from k0kubun/cloudstack-rootvolumesize
[cloudstack] Allow specifying the size of root volume
This commit is contained in:
commit
00943be30a
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,7 @@ module Fog
|
|||
attribute :nics, :type => :array, :aliases => 'nic'
|
||||
attribute :job_id, :aliases => 'jobid' # only on create
|
||||
attribute :size, :type => :integer
|
||||
attribute :root_disk_size, :type => :integer
|
||||
|
||||
attr_accessor :network_ids, :disk_offering_id, :ip_address, :ip_to_network_list
|
||||
attr_writer :security_group_ids
|
||||
|
@ -132,6 +133,7 @@ module Fog
|
|||
'size' => size,
|
||||
}
|
||||
|
||||
options.merge!('rootdisksize' => root_disk_size) if root_disk_size
|
||||
options.merge!('networkids' => network_ids) if network_ids
|
||||
options.merge!('securitygroupids' => security_group_ids) unless security_group_ids.empty?
|
||||
|
||||
|
|
Loading…
Reference in a new issue