From 1b6edab87ce3f9c437568a69d8efd3ee2bb35f94 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 30 Jul 2015 15:48:34 -0400 Subject: [PATCH] Add check mode support for Windows modules that don't modify the remote system. --- lib/ansible/modules/windows/slurp.ps1 | 2 +- lib/ansible/modules/windows/win_ping.ps1 | 2 +- lib/ansible/modules/windows/win_stat.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/windows/slurp.ps1 b/lib/ansible/modules/windows/slurp.ps1 index edf1da7635..073acddead 100644 --- a/lib/ansible/modules/windows/slurp.ps1 +++ b/lib/ansible/modules/windows/slurp.ps1 @@ -17,7 +17,7 @@ # WANT_JSON # POWERSHELL_COMMON -$params = Parse-Args $args; +$params = Parse-Args $args $true; $src = Get-Attr $params "src" (Get-Attr $params "path" $FALSE); If (-not $src) diff --git a/lib/ansible/modules/windows/win_ping.ps1 b/lib/ansible/modules/windows/win_ping.ps1 index 98f1415e29..a4dd60ef19 100644 --- a/lib/ansible/modules/windows/win_ping.ps1 +++ b/lib/ansible/modules/windows/win_ping.ps1 @@ -17,7 +17,7 @@ # WANT_JSON # POWERSHELL_COMMON -$params = Parse-Args $args; +$params = Parse-Args $args $true; $data = Get-Attr $params "data" "pong"; diff --git a/lib/ansible/modules/windows/win_stat.ps1 b/lib/ansible/modules/windows/win_stat.ps1 index 51c9c82709..cf8c14a4d4 100644 --- a/lib/ansible/modules/windows/win_stat.ps1 +++ b/lib/ansible/modules/windows/win_stat.ps1 @@ -17,7 +17,7 @@ # WANT_JSON # POWERSHELL_COMMON -$params = Parse-Args $args; +$params = Parse-Args $args $true; function Date_To_Timestamp($start_date, $end_date) {