1
0
Fork 0
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:
Alex Dunn 2012-10-09 09:24:08 -07:00
parent 0ca2117397
commit e20a95ed3d

View file

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