Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Conversation

@oc243
Copy link

@oc243 oc243 commented Feb 14, 2017

Currently the docker build succeeds even if puppet apply does not
succeed.

Puppet apply has a non-standrad system of return codes. It will
return 0 even if it hasn't sucessfully applied the manifest unless
--detailed-exitcodes is given. When this is given if it returns
0 or 2 the manifest has been applied sucessfully [0].

This patch makes the docker build fail if the manifest is not
applied successfully.

[0] https://docs.puppet.com/puppet/latest/man/apply.html#OPTIONS

Currently the docker build succeeds even if puppet apply does not
succeed.

Puppet apply has a non-standrad system of return codes. It will
return 0 even if it hasn't sucessfully applied the manifest unless
`--detailed-exitcodes` is given. When this is given if it returns
0 or 2 the manifest has been applied sucessfully [0].

This patch makes the docker build fail if the manifest is not
applied successfully.

[0] https://docs.puppet.com/puppet/latest/man/apply.html#OPTIONS
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.857% when pulling 802829f on oc243:master into 5ef6e04 on puppetlabs:master.

@garethr
Copy link
Contributor

garethr commented Feb 20, 2017

@oc243 thanks, nice fix. I've just tried this out locally and it works for me. Appreciated.

@garethr garethr closed this Feb 20, 2017
@garethr garethr reopened this Feb 20, 2017
@garethr garethr merged commit 230bd16 into puppetlabs-toy-chest:master Feb 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants