mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
240 B
PowerShell
16 lines
240 B
PowerShell
11 years ago
|
#!powershell
|
||
|
# WANT_JSON
|
||
|
# POWERSHELL_COMMON
|
||
|
|
||
|
$params = Parse-Args $args;
|
||
|
|
||
|
$data = 'pong';
|
||
|
If ($params.data.GetType)
|
||
|
{
|
||
|
$data = $params.data;
|
||
|
}
|
||
|
|
||
|
$result = New-Object psobject;
|
||
|
Set-Attr $result "ping" $data;
|
||
|
echo $result | ConvertTo-Json;
|