Commit 96e2805b by Chelsea Robb

Change check for date/time parts being set

parent 6a02e3d9
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment