1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
This commit is contained in:
Wesley Beary 2009-10-15 15:06:50 -07:00
parent 9baffcbd71
commit be8f1220bb
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,7 @@ module Fog
},
:host => 'auth.api.rackspacecloud.com',
:method => 'GET',
:path => '/v1.0'
:path => 'v1.0'
})
response.headers.reject do |key, value|
!['X-Server-Management-Url', 'X-Storage-Url', 'X-CDN-Management-Url', 'X-Auth-Token'].include?(key)

View file

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