provisioner/*: fix go vet

pull/2263/head
Mitchell Hashimoto 11 years ago
parent e1530c39dc
commit ab6a330d86

@ -294,7 +294,9 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
} }
} }
if !validExitCode { if !validExitCode {
return fmt.Errorf("Script exited with non-zero exit status: %d. Allowed exit codes are: %s", cmd.ExitStatus, p.config.ValidExitCodes) return fmt.Errorf(
"Script exited with non-zero exit status: %d. Allowed exit codes are: %v",
cmd.ExitStatus, p.config.ValidExitCodes)
} }
} }

@ -234,7 +234,7 @@ func TestProvision_waitForCommunicator(t *testing.T) {
err := waitForCommunicator(p) err := waitForCommunicator(p)
if err != nil { if err != nil {
t.Fatal("should not have error, got: %s", err.Error()) t.Fatalf("should not have error, got: %s", err.Error())
} }
expectedCommand := DefaultRestartCheckCommand expectedCommand := DefaultRestartCheckCommand

Loading…
Cancel
Save