provisioner/puppet-masterless: proper exit code check

This commit is contained in:
Mitchell Hashimoto 2013-09-09 15:02:47 -07:00
parent 4e0c25c95f
commit 642c651df4
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 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) return fmt.Errorf("Puppet exited with a non-zero exit status: %d", cmd.ExitStatus)
} }