provisioner/puppet-masterless: proper exit code check

This commit is contained in:
Mitchell Hashimoto 2013-09-09 15:02:47 -07:00
parent a14a3fe3f1
commit 8e44971b3d
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
return err
}
if cmd.ExitStatus != 0 {
if cmd.ExitStatus != 0 && cmd.ExitStatus != 2 {
return fmt.Errorf("Puppet exited with a non-zero exit status: %d", cmd.ExitStatus)
}