Skip to content

Commit

Permalink
change path logic when prefix is v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Demichev committed Feb 2, 2018
1 parent a0dff17 commit c307ead
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fog/identity/openstack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def initialize(options = {})

authenticate

if options[:openstack_identity_prefix]
case options[:openstack_identity_prefix]
when "v2.0"
@path = "/#{options[:openstack_identity_prefix]}/"
else
@path = "/#{options[:openstack_identity_prefix]}/#{@path}"
end

Expand Down

0 comments on commit c307ead

Please sign in to comment.