mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in OvmResourceBase.java
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com> This closes #502
This commit is contained in:
parent
dc359c505e
commit
0d8c64ea56
@ -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.parseLong(res.get("physicalSize")),
|
||||
return new CreatePrivateTemplateAnswer(cmd, true, null, res.get("installPath"), Long.parseLong(res.get("virtualSize")), Long.parseLong(res.get("physicalSize")),
|
||||
res.get("templateFileName"), ImageFormat.RAW);
|
||||
} catch (Exception e) {
|
||||
s_logger.debug("Create template failed", e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user