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

[Backport 7.x] (#9292) New command line flag for puppet resource, fail #9300

Merged
merged 1 commit into from Apr 1, 2024

Conversation

joshcooper
Copy link
Contributor

See discussion in issue #9292.
What this PR adds is the ability for on the command line if --fail is passed then the puppet resource command will exit with a non zero return code.

(cherry picked from commit cf6cb77)

Conflicts:
lib/puppet/application/resource.rb
spec/unit/application/resource_spec.rb

We no longer need to call save_result.first, because we explicitly assign the save_result and report return values from

save_result, report = Puppet::Resource.indirection.save(resource, key)

Spec test conflict was because commit 65bcabd moved the test type and provider outside of the test.

See discussion in issue puppetlabs#9292.
What this PR adds is the ability for on the command line if --fail is passed then
the `puppet resource` command will exit with a non zero return code.

(cherry picked from commit cf6cb77)

Conflicts:
	lib/puppet/application/resource.rb
	spec/unit/application/resource_spec.rb

We no longer need to call save_result.first, because we explicitly
assign the save_result and report return values from

    save_result, report = Puppet::Resource.indirection.save(resource, key)

Spec test conflict was because commit 65bcabd moved the test type
and provider outside of the test.
@tvpartytonight tvpartytonight merged commit 3cf0142 into puppetlabs:7.x Apr 1, 2024
12 checks passed
@joshcooper joshcooper added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants