From 96687d2e88a2621cd21fcab8e13ace6c327ec40b Mon Sep 17 00:00:00 2001 From: Nick Burgan-Illig Date: Thu, 4 May 2023 15:35:13 +0000 Subject: [PATCH] (maint) Change run_puppet max_timeout param to timeout_seconds In the next versions of PE, this parameter will change from max_timeout to timeout_seconds. --- plans/group_patching.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plans/group_patching.pp b/plans/group_patching.pp index 233b59d..f1d6936 100644 --- a/plans/group_patching.pp +++ b/plans/group_patching.pp @@ -52,7 +52,7 @@ $patch_ready = [] } else { $pre_patch_run_puppet_check = run_task('enterprise_tasks::run_puppet', $puppet_healthy, - max_timeout => 256, + timeout_seconds => 300, '_catch_errors' => true) $patch_ready = $pre_patch_run_puppet_check.ok_set.names $pre_patch_puppet_run_failed = $pre_patch_run_puppet_check.error_set.names @@ -178,7 +178,7 @@ # Sometimes a puppet run immediately after reboot fails, so give it a bit of time. pe_patch::sleep(30) $post_puppet_check = run_task('enterprise_tasks::run_puppet', $post_patch_ready, - max_timeout => 256, + timeout_seconds => 300, '_catch_errors' => true) $post_patch_puppet_run_passed = $post_puppet_check.ok_set.names $post_patch_puppet_run_failed = $post_puppet_check.error_set.names