Details
Description
Steps to reproduce
------------------------
1. Deploy s VM with parameter startVM=false
2. Call restoreVirtualMachine api on the VM.
The command will fail with an NPE.
If a VM instance is deployed with startVm=false, then calling restoreVm on the instance fails with NPE because in case of VMware CS tries to expunge the old root volume that has not yet been created in primary store.