mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[core] avoid ArgumentError with Ruby 1.8.5 on CentOS.
This commit is contained in:
parent
a40716e3b9
commit
3b8c398019
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ module Fog
|
|||
|
||||
def self.symbolize_credentials(args)
|
||||
if args.is_a? Hash
|
||||
Hash[ args.collect do |key, value|
|
||||
Hash[ *args.collect do |key, value|
|
||||
[key.to_sym, self.symbolize_credentials(value)]
|
||||
end ]
|
||||
end.flatten ]
|
||||
else
|
||||
args
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue