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

Merge pull request #3566 from yyuu/cloudstack-datadisk-size

[cloudstack] Allow specifying the size of DATADISK on the creation of a server
This commit is contained in:
Paulo Henrique Lopes Ribeiro 2015-05-18 07:04:13 -03:00
commit fb1c0f7770

View file

@ -39,6 +39,7 @@ module Fog
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
attribute :nics, :type => :array, :aliases => 'nic'
attribute :job_id, :aliases => 'jobid' # only on create
attribute :size, :type => :integer
attr_accessor :network_ids, :disk_offering_id, :ip_address, :ip_to_network_list
attr_writer :security_group_ids
@ -128,6 +129,7 @@ module Fog
'projectid' => project_id,
'keypair' => key_name,
'userdata' => user_data,
'size' => size,
}
options.merge!('networkids' => network_ids) if network_ids