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

Allow for stringified options keys

This commit is contained in:
Nikita Pomyashchiy 2012-04-20 15:51:40 +04:00
parent 7ec382cf36
commit afef980ba8

View file

@ -48,6 +48,7 @@ module Fog
def new(options={})
# attempt to load credentials from config file
options = Fog.symbolize_credentials(options)
begin
default_credentials = Fog.credentials.reject {|key, value| !(recognized | requirements).include?(key)}
options = default_credentials.merge(options)