mirror of https://github.com/apache/cloudstack.git
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
This commit is contained in:
parent
9d2fef0de8
commit
9ba4e9cb86
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue