mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Updated default Rackspace Compute provider to return a Fog::Compute::RackspaceV2 instance. In order to access legacy Cloud Servers, a :version => :v1 parameter will need be passed like so Fog::Compute.new({
:provider => 'Rackspace', :rackspace_username => USER, :rackspace_api_key => API_KEY, :version => :v1 })
This commit is contained in:
parent
887bc65142
commit
fde1ee532a
1 changed files with 4 additions and 4 deletions
|
@ -68,12 +68,12 @@ module Fog
|
|||
when :rackspace
|
||||
version = attributes.delete(:version)
|
||||
version = version.to_s.downcase.to_sym unless version.nil?
|
||||
if version == :v2
|
||||
if version == :v1
|
||||
require 'fog/rackspace/compute'
|
||||
Fog::Compute::Rackspace.new(attributes)
|
||||
else
|
||||
require 'fog/rackspace/compute_v2'
|
||||
Fog::Compute::RackspaceV2.new(attributes)
|
||||
else
|
||||
require 'fog/rackspace/compute'
|
||||
Fog::Compute::Rackspace.new(attributes)
|
||||
end
|
||||
when :serverlove
|
||||
require 'fog/serverlove/compute'
|
||||
|
|
Loading…
Reference in a new issue