diff options
author | Isaac Manuel Raj <isaac.manuelraj@huawei.com> | 2019-04-12 16:11:48 +0530 |
---|---|---|
committer | Isaac Manuel Raj <isaac.manuelraj@huawei.com> | 2019-04-16 13:33:48 +0000 |
commit | 46b9ff983d46026e9644e5b2507c06e87885bb5a (patch) | |
tree | 1988c994a34d89a5fb22e9097e7729c882620134 /nova-client/src/main | |
parent | 226c37657808fa22336940e9be49147809f41710 (diff) |
Code Enhancement (Sonar Fixes)
Sonar Issues Fixes
Issue-ID: SO-1490
Change-Id: I018569f19becc609d1c6f3b595bf05aadb86eadf
Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
Diffstat (limited to 'nova-client/src/main')
-rw-r--r-- | nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/VolumesExtension.java | 10 |
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 |