summaryrefslogtreecommitdiffstats
path: root/nova-client/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'nova-client/src/main/java')
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java5
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java7
2 files changed, 5 insertions, 7 deletions
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
index 82d5d8f..92b3b19 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
@@ -63,11 +63,11 @@ public class FlavorsResource {
public class Create extends OpenStackRequest<Flavor> {
- private Flavor flavor;
+
public Create(Flavor flavor) {
super(client, HttpMethod.POST, "/flavors", Entity.json(flavor), Flavor.class);
- this.flavor = flavor;
+
}
}
@@ -96,4 +96,3 @@ public class FlavorsResource {
return "/flavors/" + id;
}
}
-
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
index a9af749..cca80e6 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
@@ -63,11 +63,11 @@ public class ImagesResource {
public class Create extends OpenStackRequest<Image> {
- private Image image;
+
public Create(Image image) {
super(client, HttpMethod.POST, "/images", Entity.json(image), Image.class);
- this.image = image;
+
}
}
@@ -82,7 +82,7 @@ public class ImagesResource {
public ShowMetadata(String id) {
super(client, HttpMethod.GET, "/images/" + id + "/metadata", null,
- Metadata.class);
+ Metadata.class);
}
}
@@ -97,4 +97,3 @@ public class ImagesResource {
return "/images/" + id;
}
}
-