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

add service catalog call

This commit is contained in:
howete 2013-05-03 13:46:14 -06:00 committed by Rupak Ganguly
parent 87de932252
commit 3105797f06

View file

@ -101,6 +101,13 @@ module Fog
}
end
def self.service_catalog(options, connection_options = {})
creds = authenticate_v2(options, connection_options)
return {} if creds.nil?
return {} if creds[:service_catalog].nil?
return creds[:service_catalog]
end
# keystone based control services style authentication
def self.authenticate_v2(options, connection_options = {})
unless options[:credentials].nil?