Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error does not show when image:tag does not exists (#552) #553

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

rafaelcarv
Copy link

Using an exec resource instead of the onlyif will execute the script in a resource, not in a condition. This will make an error to be shown when an image:tag does not exists, not just not making an echo to be shown when the script fails.
Doing the execution of the script this way will be easier to track when a image:tag has a typo or was not created yet.

@rafaelcarv rafaelcarv requested a review from a team as a code owner November 18, 2019 16:11
@rafaelcarv rafaelcarv changed the title Fix error not show when image:tag does not exists (#552) Fix error does not show when image:tag does not exists (#552) Nov 18, 2019
@florindragos
Copy link
Contributor

Hey @rafaelcarv
Fix looks good. Ran the acceptance tests and they are green!
Thanks for your contribution!

@florindragos florindragos merged commit 22ec407 into puppetlabs:master Nov 27, 2019
@electrofelix
Copy link
Contributor

what was the point in leaving the second exec in place? As opposed to replacing it entirely?

returns => ['0', '2'],
require => File[$update_docker_image_path],
provider => $exec_provider,
logoutput => true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs the refreshonly metaparam set to true to ensure noop behaviour works as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants