From 4d117bf117446845e403f0043fb30b72835cd605 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 2 Nov 2017 10:45:54 -0700 Subject: [PATCH] Make vm log output less confusing --- builder/vmware/common/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/common/driver.go b/builder/vmware/common/driver.go index c06c8fd92..4e4f38e02 100644 --- a/builder/vmware/common/driver.go +++ b/builder/vmware/common/driver.go @@ -121,7 +121,7 @@ func NewDriver(dconfig *DriverConfig, config *SSHConfig) (Driver, error) { func runAndLog(cmd *exec.Cmd) (string, string, error) { var stdout, stderr bytes.Buffer - log.Printf("Executing: %s %v", cmd.Path, cmd.Args[1:]) + log.Printf("Executing: %s %s", cmd.Path, strings.Join(cmd.Args[1:], " ")) cmd.Stdout = &stdout cmd.Stderr = &stderr err := cmd.Run()