1
0
Fork 0
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:
Paulo Henrique Lopes Ribeiro 2018-04-19 04:55:55 -03:00 committed by GitHub
commit 00943be30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?