Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
17cbbcdd
Commit
17cbbcdd
authored
Nov 14, 2013
by
nextus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow cron module to delete cron_file without name parameter assignment
parent
a43aaaec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
library/system/cron
+3
-0
No files found.
library/system/cron
View file @
17cbbcdd
...
@@ -455,6 +455,9 @@ def main():
...
@@ -455,6 +455,9 @@ def main():
if
job
is
None
and
do_install
:
if
job
is
None
and
do_install
:
module
.
fail_json
(
msg
=
"You must specify 'job' to install a new cron job"
)
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
reboot
:
if
special_time
:
if
special_time
:
module
.
fail_json
(
msg
=
"reboot and special_time are mutually exclusive"
)
module
.
fail_json
(
msg
=
"reboot and special_time are mutually exclusive"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment