From 2ea5bb8dbbdfd695b8762d071be952482b60eebc Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Thu, 12 Jan 2017 17:35:14 +0100 Subject: [PATCH] Fix required_one_of in timezone module (#20185) --- lib/ansible/modules/system/timezone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/timezone.py b/lib/ansible/modules/system/timezone.py index 53e17a300ed..67915907323 100644 --- a/lib/ansible/modules/system/timezone.py +++ b/lib/ansible/modules/system/timezone.py @@ -437,7 +437,7 @@ def main(): hwclock=dict(default=None, choices=['UTC', 'local'], aliases=['rtc']), name=dict(default=None), ), - required_one_of=['hwclock', 'name'], + required_one_of=[['hwclock', 'name']], supports_check_mode=True ) tz = Timezone(module)