HomePhorge

(PUP-4032) Fix exitcodes on puppet device
e89753026db3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-4032) Fix exitcodes on puppet device

Puppet device does one catalog run per device in device.conf, however it
was then throwing away the return codes of the catalog compile and
apply. The man page says that puppet device supports
--detailed-exitcodes, so this fixes it.

Since there are multiple catalog runs in one command, exitcode masking
is unavoidable, so I selected to take the path of returning the single
most important exit code, in decending order with the exception of exit
1 taking precedence.

Details

Provenance
Hunter Haugen <hunter@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3a85af5e1c21: (PUP-3848) Update .gemspec for hiera dependency
Branches
Unknown
Tags
Unknown

Event Timeline

Hunter Haugen <hunter@puppetlabs.com> committed rPUe89753026db3: (PUP-4032) Fix exitcodes on puppet device (authored by Hunter Haugen <hunter@puppetlabs.com>).Mar 12 2015, 1:56 AM