Commit ab6a330d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/*: fix go vet

parent e1530c39
......@@ -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)
}
}
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment