summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Davis <mdavis@ansible.com>2016-10-28 09:34:09 -0700
committerToshio Kuratomi <a.badger@gmail.com>2016-11-01 07:58:59 -0700
commitf2f7783ef3cacb27313d02dde8b4239876f0a476 (patch)
tree17c3686cf8186f2321c4d7bdfd0a1ecacd03cf51
parentf07fb4a2011fef23507077090ebbffdec1f52ffb (diff)
downloadansible-modules-core-f2f7783ef3cacb27313d02dde8b4239876f0a476.tar.gz
fix JSON junk in win_file state=directory case
(cherry picked from commit fdf92ade263474ddde48ddc306fd56de47e610ec)
-rw-r--r--windows/win_file.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/win_file.ps1 b/windows/win_file.ps1
index 958f9f04..e064c5c6 100644
--- a/windows/win_file.ps1
+++ b/windows/win_file.ps1
@@ -102,7 +102,7 @@ Else
If ( $state -eq "directory" )
{
- New-Item -ItemType directory -Path $path
+ New-Item -ItemType directory -Path $path | Out-Null
$result.changed = $TRUE
}