Skip to content

Commit cbaab1c

Browse files
author
Jayakarteek Vasana
committed
Bug Fix for CLOUDSTACK-9908
1 parent ed2f573 commit cbaab1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,11 @@ private void setVolumeToPathAndSize(List<VolumeObjectTO> volumeTOs, Map<String,
13031303
// get volume's chain size for this VM snapshot; exclude current volume vdisk
13041304
DataStoreTO store = volumeTO.getDataStore();
13051305
ManagedObjectReference morDs = getDatastoreAsManagedObjectReference(baseName, hyperHost, store);
1306-
long size = getVMSnapshotChainSize(context, hyperHost, baseName + "*.vmdk", morDs, newPath);
1306+
long size = getVMSnapshotChainSize(context, hyperHost, baseName + "-*.vmdk", morDs, newPath);
13071307

13081308
if (volumeTO.getVolumeType()== Volume.Type.ROOT) {
13091309
// add memory snapshot size
1310-
size += getVMSnapshotChainSize(context, hyperHost, vmName + "*.vmsn", morDs, null);
1310+
size += getVMSnapshotChainSize(context, hyperHost, vmName + "-*.vmsn", morDs, null);
13111311
}
13121312

13131313
volumeTO.setSize(size);

0 commit comments

Comments
 (0)