diff options
author | nitzmahone <mdavis@ansible.com> | 2016-01-04 16:05:43 -0800 |
---|---|---|
committer | nitzmahone <mdavis@ansible.com> | 2016-01-04 16:06:41 -0800 |
commit | 0b8ae0da8b63034391a202be798b0f989269a98e (patch) | |
tree | 35ee4697ea3cfc5d729d4c9b9d792c1e8c3fec49 | |
parent | c52d0166d0f93a820859f5db327c44fb6ce203b0 (diff) | |
download | ansible-modules-core-0b8ae0da8b63034391a202be798b0f989269a98e.tar.gz |
fix win_file to stop on errors
-rw-r--r-- | windows/win_file.ps1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/win_file.ps1 b/windows/win_file.ps1 index f3877801..958f9f04 100644 --- a/windows/win_file.ps1 +++ b/windows/win_file.ps1 @@ -17,6 +17,8 @@ # WANT_JSON # POWERSHELL_COMMON +$ErrorActionPreference = "Stop" + $params = Parse-Args $args # path |