mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
[Vmware] Fix for OVF parsing error (#2567)
This commit is contained in:
parent
e71d4d4371
commit
b69c37862c
@ -113,7 +113,7 @@ public class OVFHelper {
|
|||||||
String allocationUnits = disk.getAttribute("ovf:capacityAllocationUnits");
|
String allocationUnits = disk.getAttribute("ovf:capacityAllocationUnits");
|
||||||
od._diskId = disk.getAttribute("ovf:diskId");
|
od._diskId = disk.getAttribute("ovf:diskId");
|
||||||
od._fileRef = disk.getAttribute("ovf:fileRef");
|
od._fileRef = disk.getAttribute("ovf:fileRef");
|
||||||
od._populatedSize = Long.parseLong(disk.getAttribute("ovf:populatedSize") == null ? "0" : disk.getAttribute("ovf:populatedSize"));
|
od._populatedSize = NumberUtils.toLong(disk.getAttribute("ovf:populatedSize"));
|
||||||
|
|
||||||
if ((od._capacity != 0) && (allocationUnits != null)) {
|
if ((od._capacity != 0) && (allocationUnits != null)) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user