From f3d7b28773380eb918c6227fdbb0c5615ca552e4 Mon Sep 17 00:00:00 2001 From: Subrahmanyam Mandavilli Date: Sat, 13 Feb 2016 00:43:35 +0530 Subject: [PATCH] Fixing merge issue --- src/Tools/vmOpsTool/VMWareImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tools/vmOpsTool/VMWareImpl.java b/src/Tools/vmOpsTool/VMWareImpl.java index 6c204c3..924768d 100644 --- a/src/Tools/vmOpsTool/VMWareImpl.java +++ b/src/Tools/vmOpsTool/VMWareImpl.java @@ -71,7 +71,7 @@ public class VMWareImpl implements IVMWare { System.out.printf("Finding template [%s] on vCenter server.\n", templateName); ManagedObjectReference templateMor = getMorByName(targetDCMor, templateName, VIRTUAL_MACHINE, true); ManagedObjectReference targetVmFolder = (ManagedObjectReference) getMorProperties(targetDCMor, new String[]{VM_FOLDER}).get(VM_FOLDER); - VirtualMachineCloneSpec cloneSpec = getVirtualMachineCloneSpec(computeType, computeName, targetDS); + VirtualMachineCloneSpec cloneSpec = getVirtualMachineCloneSpec(computeType, computeName, targetDS, description); System.out.printf("Creating new virtual machine [%s] using template [%s].\n", vmName, templateName); ManagedObjectReference task = vimPort.cloneVMTask(templateMor, targetVmFolder, vmName, cloneSpec); @@ -542,7 +542,7 @@ public class VMWareImpl implements IVMWare { } } - private VirtualMachineCloneSpec getVirtualMachineCloneSpec(String computeType, String computeName, String targetDS) throws Exception { + private VirtualMachineCloneSpec getVirtualMachineCloneSpec(String computeType, String computeName, String targetDS, String description) throws Exception { VirtualMachineRelocateSpec relocSpec = getVirtualMachineRelocationSpec(computeType, computeName, targetDS); VirtualMachineConfigSpec configSpec = new VirtualMachineConfigSpec();