You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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: