-
Notifications
You must be signed in to change notification settings - Fork 225
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
unable to use _catch_errors for apply_prep function in puppet plan #3290
Labels
Bug
Bug reports and fixes.
Comments
srikanth2302
changed the title
unable to use _catch_errors for apply_prep function in pupept plan
unable to use _catch_errors for apply_prep function in puppet plan
Apr 1, 2024
Bolt supports this as of 9dcbd88 . I'm assuming you are not running this plan through bolt as a system package or gem, but rather through the orchestrator in PE? |
Yes.. This Plan is run via PE Console and not through any bolt commands. |
Can this be feasible to get ResultSet Info as well Instead of BoltResultSet for apply_prep() to run via orchestrator PE Console Plan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
apply_prep function unable to catch errors to go further in a plan. It says 'apply_prep' expects 1 argument, got 2"
Expected Behavior
apply_prep function needs to catch error so that even if 1/10 nodes failed need to proceed further tasks in a plan.
Steps to Reproduce
Tried below ways to catch errors in apply_prep function
Method 1:
$apply_prep_result = apply_prep($target_nodes,
{
'_catch_errors' => true
})
Method 2:
$apply_prep_result = apply_prep($target_nodes,'_catch_errors' => true)
Environment
The text was updated successfully, but these errors were encountered: