mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
catch passing an invalid openstack_tenant
This commit is contained in:
parent
8d95d5bff2
commit
14811a15cc
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ module Fog
|
|||
end
|
||||
|
||||
body = retrieve_tokens_v2(connection, req_body, uri)
|
||||
if body['access']['token']['tenant'].nil?
|
||||
raise Errors::NotFound.new("Invalid Tenant '#{@openstack_tenant}'")
|
||||
end
|
||||
svc = body['access']['serviceCatalog'].
|
||||
detect{|x| @service_name.include?(x['type']) }
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue