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:
parent
28cefad193
commit
82d7a7ed5b
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -56,6 +56,7 @@ unless Fog.mocking?
|
|||
}
|
||||
end
|
||||
end
|
||||
p data
|
||||
request(
|
||||
:body => data.to_json,
|
||||
:expects => 202,
|
||||
|
|
Loading…
Add table
Reference in a new issue