lib/fog/openstack/requests/identity/check_token.rb in fog-1.28.0 vs lib/fog/openstack/requests/identity/check_token.rb in fog-1.29.0

- old
+ new

@@ -1,18 +1,20 @@ module Fog module Identity class OpenStack class Real - def check_token(token_id, tenant_id) + def check_token(token_id, tenant_id=nil) request( :expects => [200, 203], :method => 'HEAD', - :path => "tokens/#{token_id}?belongsTo=#{tenant_id}" + :path => "tokens/#{token_id}"+(tenant_id ? "?belongsTo=#{tenant_id}" : '') ) end end class Mock + def check_token(token_id, tenant_id=nil) + end end end end end