diff --git a/lib/ansible/modules/windows/win_timezone.ps1 b/lib/ansible/modules/windows/win_timezone.ps1 index cba4b616b6b..9334316112a 100644 --- a/lib/ansible/modules/windows/win_timezone.ps1 +++ b/lib/ansible/modules/windows/win_timezone.ps1 @@ -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 diff --git a/lib/ansible/modules/windows/win_timezone.py b/lib/ansible/modules/windows/win_timezone.py index 65bd43eab90..6cd984ae6b3 100644 --- a/lib/ansible/modules/windows/win_timezone.py +++ b/lib/ansible/modules/windows/win_timezone.py @@ -38,8 +38,6 @@ options: description: - Timezone to set to. Example Central Standard Time required: true - default: null - aliases: [] author: Phil Schwartz '''