lib/fog/openstack/auth/token/v3.rb in fog-openstack-1.0.2 vs lib/fog/openstack/auth/token/v3.rb in fog-openstack-1.0.3

- old
+ new

@@ -35,11 +35,19 @@ else {'auth' => {'identity' => identity}} end end + def prefix_path(uri) + if uri.path =~ /\/v3(\/)*.*$/ + '' + else + '/v3' + end + end + def path - '/v3/auth/tokens' + '/auth/tokens' end def scope return @project.identity if @project return @domain.identity if @domain