Commit b8ed6c05 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Warn for files that do not exist.

parent f836ce78
Pipeline #1041 passed with stage
in 3 minutes and 43 seconds
......@@ -1062,6 +1062,7 @@ def check_crontab(crontab_file, log, whitelisted_users=None):
# Check if the file even exists.
if not os.path.exists(crontab_file):
log.Warn('File "%s" does not exist.' % crontab_file)
return log.Summary()
# Add the any specified users to the whitelist
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