vmware: syncVolumeToRootFolder method to avoid an infite recursive loop (#3105)

The static method syncVolumeToRootFolder() from VmwareStorageLayoutHelper.java:146 has been incorrectly called and leads to an infinite recursive call that ends up in a StackOverflowError. This PR fixes this.
public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName) throws Exception { syncVolumeToRootFolder(dcMo, ds, vmdkName, null); } -> public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName) throws Exception { syncVolumeToRootFolder(dcMo, ds, vmdkName, vmName, null); }
This commit is contained in:
Dingane Hlaluku 2019-01-07 10:29:45 +02:00 committed by Rohit Yadav
parent 13c81a8ee4
commit e56c499fb8

View File

@ -143,7 +143,7 @@ public class VmwareStorageLayoutHelper {
}
public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName) throws Exception {
syncVolumeToRootFolder(dcMo, ds, vmdkName, null);
syncVolumeToRootFolder(dcMo, ds, vmdkName, vmName, null);
}
public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName, String excludeFolders) throws Exception {