From 96e2805b312291125535db9a06759e4bef61c759 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 --- library/cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cron b/library/cron index 9bab53e017..b899d3419d 100644 --- a/library/cron +++ b/library/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: