mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Removed options attribute and used the already existing disk_config attribute instead. Passed in options hash to create_server method with disk_config attribute unless nil.
This commit is contained in:
parent
0ca2117397
commit
e20a95ed3d
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,6 @@ module Fog
|
|||
attribute :addresses
|
||||
attribute :flavor_id, :aliases => 'flavor', :squash => 'id'
|
||||
attribute :image_id, :aliases => 'image', :squash => 'id'
|
||||
attribute :options
|
||||
|
||||
attr_reader :password
|
||||
|
||||
|
@ -55,7 +54,8 @@ module Fog
|
|||
|
||||
def create
|
||||
requires :name, :image_id, :flavor_id
|
||||
options = {} if options.nil?
|
||||
options = {}
|
||||
options[:disk_config] = disk_config unless disk_config.nil?
|
||||
data = connection.create_server(name, image_id, flavor_id, 1, 1, options)
|
||||
merge_attributes(data.body['server'])
|
||||
true
|
||||
|
|
Loading…
Add table
Reference in a new issue