mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
cleanup
This commit is contained in:
parent
9baffcbd71
commit
be8f1220bb
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue