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

Commits on Mar 20, 2024

  1. (puppetlabs#9292) New command line flag for puppet resource, fail

    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.
    cthorn42 authored and joshcooper committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    f71d334 View commit details
    Browse the repository at this point in the history