Permalink
Browse files

fixed add user to tenant

  • Loading branch information...
1 parent cb0584d commit 16a2e468ee9d2b2777d27ff9f48199e224461dd3 @woorea committed Oct 8, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −1 README.textile
  2. +2 −1 keystone-client/src/main/java/org/openstack/keystone/api/AddUserToTenant.java
View
@@ -12,7 +12,10 @@ h2. Maven
|org.openstack|glance-client|2.0.0-SNAPSHOT|
|org.openstack|swift-client|2.0.0-SNAPSHOT|
-https://raw.github.com/woorea/maven/master/snapshots/
+h3. Maven Repositories
+
+https://maven.java.net/content/repositories/snapshots
+https://raw.github.com/woorea/maven/master/snapshots
h1. Available artifacts
@@ -1,5 +1,6 @@
package org.openstack.keystone.api;
+import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
@@ -19,7 +20,7 @@ public AddUserToTenant(String tenantId, String userId, String roleId) {
@Override
public Void execute(WebTarget target) {
- target.path("tenants").path(tenantId).path("users").path(userId).path("roles/OS-KSADM").path(roleId).request(MediaType.APPLICATION_JSON).method("PUT");
+ target.path("tenants").path(tenantId).path("users").path(userId).path("roles/OS-KSADM").path(roleId).request(MediaType.APPLICATION_JSON).put(Entity.text(""));
return null;
}

0 comments on commit 16a2e46

Please sign in to comment.