From e20a95ed3d26680dd17971be9c95cd4f1dbc0672 Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Tue, 9 Oct 2012 09:24:08 -0700 Subject: [PATCH] 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. --- lib/fog/rackspace/models/compute_v2/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/rackspace/models/compute_v2/server.rb b/lib/fog/rackspace/models/compute_v2/server.rb index 07290a5e9..4b9ff26eb 100644 --- a/lib/fog/rackspace/models/compute_v2/server.rb +++ b/lib/fog/rackspace/models/compute_v2/server.rb @@ -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