summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>2020-05-07 08:15:16 -0400
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>2020-05-07 08:24:06 -0400
commita3a60330829f9a47495185c865c8078dad116ac9 (patch)
tree82853475aef591a9446943830d4e580cdae8efc8
parentb5b101b0c0cb8b914aeadaae55fb34a800e02db5 (diff)
Update Glance client to utilize head
Issue-ID: SO-2906 Change-Id: Ie4d4618354a73754c0357004a34ef4b9cd99ad7d Change-Id: Ia741f5170945e2e1c0c45c62a4c671270b173ec2 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
-rw-r--r--glance-client/src/main/java/com/woorea/openstack/glance/ImagesResource.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/glance-client/src/main/java/com/woorea/openstack/glance/ImagesResource.java b/glance-client/src/main/java/com/woorea/openstack/glance/ImagesResource.java
index a34980d..3ff062a 100644
--- a/glance-client/src/main/java/com/woorea/openstack/glance/ImagesResource.java
+++ b/glance-client/src/main/java/com/woorea/openstack/glance/ImagesResource.java
@@ -16,6 +16,10 @@
package com.woorea.openstack.glance;
+import java.util.Calendar;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.woorea.openstack.base.client.Entity;
import com.woorea.openstack.base.client.HttpMethod;
@@ -28,10 +32,6 @@ import com.woorea.openstack.glance.model.ImageMember;
import com.woorea.openstack.glance.model.ImageMembers;
import com.woorea.openstack.glance.model.ImageUpload;
import com.woorea.openstack.glance.model.Images;
-import java.util.Calendar;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
public class ImagesResource {
@@ -126,13 +126,7 @@ public class ImagesResource {
public class Show extends OpenStackRequest<Image> {
public Show(String id) {
- super(client, HttpMethod.HEAD, new StringBuilder(IMAGES).append(id).toString(), null, Image.class);
- }
-
- @Override
- public Image execute() {
- // custom parsing here
- return parse(client.request(this).headers());
+ super(client, HttpMethod.GET, new StringBuilder(IMAGES).append(id).toString(), null, Image.class);
}
}