From bb27e38578e0d8b721708e9ab1b28b437dc86033 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Kliemeck Date: Wed, 11 Nov 2015 12:51:24 +0100 Subject: [PATCH] corrected replacement of last backslash --- lib/ansible/modules/extras/windows/win_share.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_share.ps1 b/lib/ansible/modules/extras/windows/win_share.ps1 index 86970f88d39..f409281711e 100644 --- a/lib/ansible/modules/extras/windows/win_share.ps1 +++ b/lib/ansible/modules/extras/windows/win_share.ps1 @@ -145,7 +145,7 @@ Try { } # normalize path and remove slash at the end - $path = (Get-Item $path).FullName -replace ".$" + $path = (Get-Item $path).FullName -replace "\\$" # need to (re-)create share If (!$share) {