Fix for prefix for linuxkit

Signed-off-by: Dan Finneran <daniel.finneran@gmail.com>
This commit is contained in:
Daniel Finneran 2017-04-18 19:00:31 -05:00
parent bd8017a4e1
commit 85b33baf58

View File

@ -151,6 +151,13 @@ func buildVMX(cpus int, mem int, diskPath string, prefix string) string {
if diskPath != "" {
returnString += fmt.Sprintf(vmxDisk, diskPath)
} else {
vmdkPath := prefix + ".vmdk"
if _, err := os.Stat(vmdkPath); os.IsNotExist(err) {
log.Fatalf("File [%s] does not exist in current directory", vmdkPath)
} else {
returnString += fmt.Sprintf(vmxDisk, vmdkPath)
}
}
returnString += vmxPCI