From 60ca6e2f858e247220d3a85f8440d29e669a4bfe Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Mon, 4 Jan 2016 16:05:43 -0800 Subject: [PATCH] fix win_file to stop on errors --- lib/ansible/modules/windows/win_file.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/windows/win_file.ps1 b/lib/ansible/modules/windows/win_file.ps1 index f387780123c..958f9f04fcc 100644 --- a/lib/ansible/modules/windows/win_file.ps1 +++ b/lib/ansible/modules/windows/win_file.ps1 @@ -17,6 +17,8 @@ # WANT_JSON # POWERSHELL_COMMON +$ErrorActionPreference = "Stop" + $params = Parse-Args $args # path