From 48476137251cfc5c479df55abdb0c92c10495b6e Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 2 Jun 2017 01:43:08 +0200 Subject: [PATCH] win_timezone: Add RETURN information (#24571) And cosmetic cleanup. This fixes ansible/ansible-modules-extras#1767 --- lib/ansible/modules/windows/win_timezone.ps1 | 11 +++++------ lib/ansible/modules/windows/win_timezone.py | 2 -- 2 files changed, 5 insertions(+), 8 deletions(-) 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 '''