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:
parent
ad358b9ddb
commit
1619462fea
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue