mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Add check mode support for Windows modules that don't modify the remote system.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
# WANT_JSON
|
# WANT_JSON
|
||||||
# POWERSHELL_COMMON
|
# POWERSHELL_COMMON
|
||||||
|
|
||||||
$params = Parse-Args $args;
|
$params = Parse-Args $args $true;
|
||||||
|
|
||||||
$src = Get-Attr $params "src" (Get-Attr $params "path" $FALSE);
|
$src = Get-Attr $params "src" (Get-Attr $params "path" $FALSE);
|
||||||
If (-not $src)
|
If (-not $src)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# WANT_JSON
|
# WANT_JSON
|
||||||
# POWERSHELL_COMMON
|
# POWERSHELL_COMMON
|
||||||
|
|
||||||
$params = Parse-Args $args;
|
$params = Parse-Args $args $true;
|
||||||
|
|
||||||
$data = Get-Attr $params "data" "pong";
|
$data = Get-Attr $params "data" "pong";
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# WANT_JSON
|
# WANT_JSON
|
||||||
# POWERSHELL_COMMON
|
# POWERSHELL_COMMON
|
||||||
|
|
||||||
$params = Parse-Args $args;
|
$params = Parse-Args $args $true;
|
||||||
|
|
||||||
function Date_To_Timestamp($start_date, $end_date)
|
function Date_To_Timestamp($start_date, $end_date)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user