We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e71d4d4 commit b69c378Copy full SHA for b69c378
1 file changed
api/src/com/cloud/agent/api/storage/OVFHelper.java
@@ -113,7 +113,7 @@ public List<DatadiskTO> getOVFVolumeInfo(final String ovfFilePath) {
113
String allocationUnits = disk.getAttribute("ovf:capacityAllocationUnits");
114
od._diskId = disk.getAttribute("ovf:diskId");
115
od._fileRef = disk.getAttribute("ovf:fileRef");
116
- od._populatedSize = Long.parseLong(disk.getAttribute("ovf:populatedSize") == null ? "0" : disk.getAttribute("ovf:populatedSize"));
+ od._populatedSize = NumberUtils.toLong(disk.getAttribute("ovf:populatedSize"));
117
118
if ((od._capacity != 0) && (allocationUnits != null)) {
119
0 commit comments