Merge pull request #1084 from bradgignac/fix-1.8.7-rackspace-versioning

[rackspace|compute] Don't intern nil strings.
This commit is contained in:
Brad Gignac 2012-08-10 14:13:31 -07:00
commit effc2f0566
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ module Fog
def self.new(attributes)
attributes = attributes.dup # prevent delete from having side effects
provider = attributes.delete(:provider).to_s.downcase.to_sym
version = attributes.delete(:version).to_s.downcase.to_sym
version = attributes.delete(:version)
version = version.to_s.downcase.to_sym unless version.nil?
case provider
when :aws