From ae0e1b541ef1122d9fdd38e8a6c0dc308cf8d58d Mon Sep 17 00:00:00 2001 From: Chelsea Robb Date: Wed, 19 Dec 2012 15:12:04 +1100 Subject: [PATCH] Change check for date/time parts being set --- cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron b/cron index 9bab53e0174..b899d3419da 100644 --- a/cron +++ b/cron @@ -250,7 +250,7 @@ def main(): do_install = module.params['state'] == 'present' changed = False - if reboot and (len(set([minute, hour, day, month, weekday, '*'])) != 1): + if reboot and (True in [(x != '*') for x in [minute, hour, day, month, weekday]]): module.fail_json(msg="You must specify either reboot=True or any of minute, hour, day, month, weekday") if reboot: