mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[cloudstack] Allow specifying the size of DATADISK on the creation of a server
This commit is contained in:
parent
bc71bedbdc
commit
d1e083b891
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,7 @@ module Fog
|
||||||
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
|
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
|
||||||
attribute :nics, :type => :array, :aliases => 'nic'
|
attribute :nics, :type => :array, :aliases => 'nic'
|
||||||
attribute :job_id, :aliases => 'jobid' # only on create
|
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_accessor :network_ids, :disk_offering_id, :ip_address, :ip_to_network_list
|
||||||
attr_writer :security_group_ids
|
attr_writer :security_group_ids
|
||||||
|
@ -128,6 +129,7 @@ module Fog
|
||||||
'projectid' => project_id,
|
'projectid' => project_id,
|
||||||
'keypair' => key_name,
|
'keypair' => key_name,
|
||||||
'userdata' => user_data,
|
'userdata' => user_data,
|
||||||
|
'size' => size,
|
||||||
}
|
}
|
||||||
|
|
||||||
options.merge!('networkids' => network_ids) if network_ids
|
options.merge!('networkids' => network_ids) if network_ids
|
||||||
|
|
Loading…
Reference in a new issue