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

fix symbol/string key mismatch

This commit is contained in:
Wesley Beary 2009-10-15 16:25:12 -07:00
parent 28cefad193
commit 82d7a7ed5b
2 changed files with 4 additions and 1 deletions

View file

@ -27,8 +27,10 @@ module Fog
end
def save
options = { :metadata => @metadata, :name => @name, :personality => @personality }
options = { 'metadata' => @metadata, 'name' => @name, 'personality' => @personality }
options = options.reject {|key, value| value.nil?}
p @personality
p options
data = connection.create_server(@flavor_id, @image_id, options)
merge_attributes(data.body['server'])
true

View file

@ -56,6 +56,7 @@ unless Fog.mocking?
}
end
end
p data
request(
:body => data.to_json,
:expects => 202,