provisioner/*: fix go vet

This commit is contained in:
Mitchell Hashimoto 2015-06-14 12:39:39 -07:00
parent e1530c39dc
commit ab6a330d86
2 changed files with 4 additions and 2 deletions

View File

@ -294,7 +294,9 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
}
}
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)
}
}

View File

@ -234,7 +234,7 @@ func TestProvision_waitForCommunicator(t *testing.T) {
err := waitForCommunicator(p)
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