From 2ffb705049ff6bb05932e32b60623757309e629b Mon Sep 17 00:00:00 2001 From: Kevin Houdebert Date: Wed, 4 Jan 2017 15:27:24 +0100 Subject: [PATCH] Fix win_robocopy flags argument (#19603) --- lib/ansible/modules/windows/win_robocopy.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/windows/win_robocopy.ps1 b/lib/ansible/modules/windows/win_robocopy.ps1 index 69cf9ee3e3a..6b0e60bac17 100644 --- a/lib/ansible/modules/windows/win_robocopy.ps1 +++ b/lib/ansible/modules/windows/win_robocopy.ps1 @@ -85,7 +85,9 @@ if ($flags -eq $null) { } } Else { - $robocopy_opts += $flags + ForEach ($f in $flags.split(" ")) { + $robocopy_opts += $f + } } Set-Attr $result.win_robocopy "purge" $purge