win_timezone: Add RETURN information (#24571)

And cosmetic cleanup.

This fixes ansible/ansible-modules-extras#1767
This commit is contained in:
Dag Wieers 2017-06-02 01:43:08 +02:00 committed by Matt Davis
parent d0d33262cb
commit 4847613725
2 changed files with 5 additions and 8 deletions

View file

@ -19,15 +19,14 @@
# WANT_JSON
# POWERSHELL_COMMON
$result = @{
changed = $false
win_timezone = @{}
}
$params = Parse-Args $args -supports_check_mode $true
$check_mode = Get-AnsibleParam -obj $params -name "_ansible_check_mode" -type "bool" -default $false
$timezone = Get-AnsibleParam -obj $params -name "timezone" -failifempty $true -resultobj $result
$timezone = Get-AnsibleParam -obj $params -name "timezone" -type "str" -failifempty $true
$result = @{
changed = $false
}
Try {
# Get the current timezone set

View file

@ -38,8 +38,6 @@ options:
description:
- Timezone to set to. Example Central Standard Time
required: true
default: null
aliases: []
author: Phil Schwartz
'''