From 46b9ff983d46026e9644e5b2507c06e87885bb5a Mon Sep 17 00:00:00 2001 From: Isaac Manuel Raj Date: Fri, 12 Apr 2019 16:11:48 +0530 Subject: Code Enhancement (Sonar Fixes) Sonar Issues Fixes Issue-ID: SO-1490 Change-Id: I018569f19becc609d1c6f3b595bf05aadb86eadf Signed-off-by: Isaac Manuel Raj --- .../woorea/openstack/nova/api/extensions/VolumesExtension.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nova-client/src/main') 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 { - // 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 -- cgit 1.2.3-korg