win_timezone: Add RETURN information (#24571)

And cosmetic cleanup.

This fixes ansible/ansible-modules-extras#1767
pull/25285/head
Dag Wieers 8 years ago committed by Matt Davis
parent d0d33262cb
commit 4847613725

@ -19,15 +19,14 @@
# WANT_JSON # WANT_JSON
# POWERSHELL_COMMON # POWERSHELL_COMMON
$result = @{
changed = $false
win_timezone = @{}
}
$params = Parse-Args $args -supports_check_mode $true $params = Parse-Args $args -supports_check_mode $true
$check_mode = Get-AnsibleParam -obj $params -name "_ansible_check_mode" -type "bool" -default $false $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 { Try {
# Get the current timezone set # Get the current timezone set

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

Loading…
Cancel
Save