From 52f9c3468c072483beb5f1b1057d0f4261c2f846 Mon Sep 17 00:00:00 2001 From: Matt Calhoun Date: Tue, 29 Sep 2015 16:40:22 -0400 Subject: [PATCH] The variable $uppercase_cert_thumbprint cannot be retrieved because it has not been set. --- lib/ansible/modules/windows/setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/windows/setup.ps1 b/lib/ansible/modules/windows/setup.ps1 index 06c160fa28..a6f439d733 100644 --- a/lib/ansible/modules/windows/setup.ps1 +++ b/lib/ansible/modules/windows/setup.ps1 @@ -80,6 +80,7 @@ $winrm_https_listener_parent_path = Get-ChildItem -Path WSMan:\localhost\Listene $winrm_https_listener_path = $null $https_listener = $null $winrm_cert_thumbprint = $null +$uppercase_cert_thumbprint = $null if ($winrm_https_listener_parent_path ) { $winrm_https_listener_path = $winrm_https_listener_parent_path.PSParentPath.Substring($winrm_https_listener_parent_path.PSParentPath.LastIndexOf("\"))