summaryrefslogtreecommitdiffstats
path: root/nova-client/src
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-17 04:44:48 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-17 04:44:48 +0000
commit93f480949c9b0babd4f10d7b0e47f5c23b9b6b88 (patch)
treeeac5cb989bfe942eb0fa600b413b050b02310613 /nova-client/src
parentd7218db1247c9129c06fde271cd09661acbd2c42 (diff)
parent46b9ff983d46026e9644e5b2507c06e87885bb5a (diff)
Merge "Code Enhancement (Sonar Fixes)"
Diffstat (limited to 'nova-client/src')
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java
index b46983f..f154b5f 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java
@@ -69,12 +69,12 @@ public class VolumesExtension {
public class Create extends OpenStackRequest<Volume> {
- // private Volume volume;
+
public Create(VolumeForCreate volume) {
super(CLIENT, HttpMethod.POST, "/os-volumes", Entity.json(volume),
Volume.class);
- // this.volume = volume;
+
}
}
@@ -85,7 +85,7 @@ public class VolumesExtension {
public UploadToImage(VolumeForImageCreate volumeForImageCreate) {
super(CLIENT, HttpMethod.POST, new StringBuilder("/volumes/")
- .append(volumeForImageCreate.getVolumeId() + "/action"),
+ .append(volumeForImageCreate.getVolumeId() + "/action"),
Entity.json(volumeForImageCreate), Void.class);
}
@@ -104,7 +104,7 @@ public class VolumesExtension {
public ShowMetadata(String id) {
super(CLIENT, HttpMethod.GET, new StringBuilder("/os-volumes/")
- .append(id).append("/metadata").toString(), null,
+ .append(id).append("/metadata").toString(), null,
Metadata.class);
}
@@ -119,4 +119,4 @@ public class VolumesExtension {
}
-}
+} \ No newline at end of file