Change check for date/time parts being set
This commit is contained in:
parent
6a02e3d918
commit
96e2805b31
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ def main():
|
||||||
do_install = module.params['state'] == 'present'
|
do_install = module.params['state'] == 'present'
|
||||||
changed = False
|
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")
|
module.fail_json(msg="You must specify either reboot=True or any of minute, hour, day, month, weekday")
|
||||||
|
|
||||||
if reboot:
|
if reboot:
|
||||||
|
|
Loading…
Reference in a new issue