cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [16/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:14:49 GMT
Fix findbugs warning in OvmResourceBase.java CreatePrivateTemplateAnswer constructor takes
long as physicalSize parameter, Long was being created instead

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #423


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9ba4e9cb
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9ba4e9cb
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9ba4e9cb

Branch: refs/heads/master
Commit: 9ba4e9cb869cc5743e5b80de63e4c37a161263f1
Parents: 9d2fef0
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:04:53 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:36 2015 +0300

----------------------------------------------------------------------
 .../ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9ba4e9cb/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java b/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
index 736f2ee..7e542d5 100644
--- a/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
+++ b/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
@@ -1072,7 +1072,7 @@ public class OvmResourceBase implements ServerResource, HypervisorResource
{
             String secondaryStorageMountPath = uri.getHost() + ":" + uri.getPath();
             String installPath = "template/tmpl/" + accountId + "/" + templateId;
             Map<String, String> res = OvmStoragePool.createTemplateFromVolume(_conn,
secondaryStorageMountPath, installPath, volumePath, wait);
-            return new CreatePrivateTemplateAnswer(cmd, true, null, res.get("installPath"),
Long.valueOf(res.get("virtualSize")), Long.valueOf(res.get("physicalSize")),
+            return new CreatePrivateTemplateAnswer(cmd, true, null, res.get("installPath"),
Long.valueOf(res.get("virtualSize")), Long.parseLong(res.get("physicalSize")),
                 res.get("templateFileName"), ImageFormat.RAW);
         } catch (Exception e) {
             s_logger.debug("Create template failed", e);


Mime
View raw message