mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace|compute] switching default compute provider to Fog::Compute::RackspaceV2
This commit is contained in:
parent
901f70c525
commit
ff1cb9de31
2 changed files with 6 additions and 6 deletions
|
@ -24,13 +24,13 @@ module Fog
|
|||
when :rackspace
|
||||
version = attributes.delete(:version)
|
||||
version = version.to_s.downcase.to_sym unless version.nil?
|
||||
if version == :v2
|
||||
require 'fog/rackspace/compute_v2'
|
||||
Fog::Compute::RackspaceV2.new(attributes)
|
||||
else
|
||||
if version == :v1
|
||||
Fog::Logger.deprecation "First Gen Cloud Servers are deprecated. Please use `:version => :v2` attribute to use Next Gen Cloud Servers."
|
||||
require 'fog/rackspace/compute'
|
||||
Fog::Compute::Rackspace.new(attributes)
|
||||
else
|
||||
require 'fog/rackspace/compute_v2'
|
||||
Fog::Compute::RackspaceV2.new(attributes)
|
||||
end
|
||||
when :stormondemand
|
||||
require 'fog/storm_on_demand/compute'
|
||||
|
|
|
@ -120,9 +120,9 @@ def compute_providers
|
|||
}
|
||||
},
|
||||
:rackspace => {
|
||||
:provider_attributes => { :version => :v1 },
|
||||
:provider_attributes => { :version => :v2 },
|
||||
:server_attributes => {
|
||||
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
|
||||
:image_id => "23b564c9-c3e6-49f9-bc68-86c7a9ab5018", # Ubuntu 12.04 LTS (Precise Pangolin)
|
||||
:name => "fog_#{Time.now.to_i}"
|
||||
},
|
||||
:mocked => true
|
||||
|
|
Loading…
Reference in a new issue