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:
parent
87de932252
commit
3105797f06
1 changed files with 7 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue