mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
win_timezone: Add RETURN information (#24571)
And cosmetic cleanup. This fixes ansible/ansible-modules-extras#1767
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -38,8 +38,6 @@ options:
|
||||
description:
|
||||
- Timezone to set to. Example Central Standard Time
|
||||
required: true
|
||||
default: null
|
||||
aliases: []
|
||||
|
||||
author: Phil Schwartz
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user