1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|compute] Don't intern nil strings.

This commit is contained in:
Brad Gignac 2012-08-10 17:12:54 -04:00
parent ad358b9ddb
commit 1619462fea

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