Skip to content

Commit

Permalink
Don't allow cron module to delete cron_file without name parameter as…
Browse files Browse the repository at this point in the history
…signment
  • Loading branch information
nextus committed Nov 14, 2013
1 parent a43aaae commit 17cbbcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/system/cron
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ def main():
if job is None and do_install:
module.fail_json(msg="You must specify 'job' to install a new cron job")

if job and name is None and not do_install:
module.fail_json(msg="You must specify 'name' to remove a cron job")

if reboot:
if special_time:
module.fail_json(msg="reboot and special_time are mutually exclusive")
Expand Down

0 comments on commit 17cbbcd

Please sign in to comment.