Skip to content
This repository
Browse code

fixed add user to tenant

  • Loading branch information...
commit 16a2e468ee9d2b2777d27ff9f48199e224461dd3 1 parent cb0584d
Luis Gervaso authored October 08, 2012
5  README.textile
Source Rendered
@@ -12,7 +12,10 @@ h2. Maven
12 12
 |org.openstack|glance-client|2.0.0-SNAPSHOT|
13 13
 |org.openstack|swift-client|2.0.0-SNAPSHOT|
14 14
 
15  
-https://raw.github.com/woorea/maven/master/snapshots/
  15
+h3. Maven Repositories
  16
+
  17
+https://maven.java.net/content/repositories/snapshots
  18
+https://raw.github.com/woorea/maven/master/snapshots
16 19
 
17 20
 h1. Available artifacts
18 21
 
3  keystone-client/src/main/java/org/openstack/keystone/api/AddUserToTenant.java
... ...
@@ -1,5 +1,6 @@
1 1
 package org.openstack.keystone.api;
2 2
 
  3
+import javax.ws.rs.client.Entity;
3 4
 import javax.ws.rs.client.WebTarget;
4 5
 import javax.ws.rs.core.MediaType;
5 6
 
@@ -19,7 +20,7 @@ public AddUserToTenant(String tenantId, String userId, String roleId) {
19 20
 	
20 21
 	@Override
21 22
 	public Void execute(WebTarget target) {
22  
-		target.path("tenants").path(tenantId).path("users").path(userId).path("roles/OS-KSADM").path(roleId).request(MediaType.APPLICATION_JSON).method("PUT");
  23
+		target.path("tenants").path(tenantId).path("users").path(userId).path("roles/OS-KSADM").path(roleId).request(MediaType.APPLICATION_JSON).put(Entity.text(""));
23 24
 		return null;
24 25
 	}
25 26
 

0 notes on commit 16a2e46

Please sign in to comment.
Something went wrong with that request. Please try again.