provisioner/*: fix go vet
This commit is contained in:
parent
e1530c39dc
commit
ab6a330d86
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue