From d33dde393c368e629936102be2d9b56515a64963 Mon Sep 17 00:00:00 2001 From: rvasikarla Date: Sun, 5 Apr 2026 18:57:51 -0500 Subject: [PATCH] fix: enable WinRM retry for transient WSMAN errors Change the WinRM connection retry_limit from 1 (effectively disabling retries) to 3 with a 10 second delay. This matches the WinRM gem defaults and prevents bolt plans and tasks from failing due to transient WSMAN errors (e.g. ERROR CODE: 1018). Fixes #3385 --- lib/bolt/transport/winrm/connection.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bolt/transport/winrm/connection.rb b/lib/bolt/transport/winrm/connection.rb index 2f34ffa037..4603465dc4 100644 --- a/lib/bolt/transport/winrm/connection.rb +++ b/lib/bolt/transport/winrm/connection.rb @@ -42,7 +42,8 @@ def connect # https://github.com/WinRb/WinRM/issues/270 user: target.options['realm'] ? 'dummy' : @user, password: target.options['realm'] ? 'dummy' : target.password, - retry_limit: 1, + retry_limit: 3, + retry_delay: 10, transport: transport, basic_auth_only: target.options['basic-auth-only'], ca_trust_path: cacert,