builder/vmware: log when writing a VMX

This commit is contained in:
Mitchell Hashimoto 2013-11-07 21:03:15 -08:00
parent b228723903
commit 2ccc5e80c7
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"io"
"log"
"os"
"regexp"
"sort"
@ -51,6 +52,7 @@ func EncodeVMX(contents map[string]string) string {
// WriteVMX takes a path to a VMX file and contents in the form of a
// map and writes it out.
func WriteVMX(path string, data map[string]string) (err error) {
log.Printf("Writing VMX to: %s", path)
f, err := os.Create(path)
if err != nil {
return