Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/fog/openstack/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ def authenticate
@openstack_auth_url
end

# Manages cases where identity endpoint returned is v2 but v3 should be used
if @openstack_service_type.include? 'identity_v3' and @openstack_management_url =~ /\/v2\.0(\/)*$/
@openstack_management_url = @openstack_auth_url
end

@current_user = token.user['name']
@current_user_id = token.user['id']
@current_tenant = token.tenant
Expand Down