Skip to content
Snippets Groups Projects
Commit 5161d890 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Fix whitelisted users.

Not sure why, but this was completely broken. Not sure what I'd been
thinking.
parent d4cbe2ca
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,10 @@ def main(argv):
sys.exit(1)
log = check.LogCounter()
print('Checking correctness of %s' % argv[1])
return check.check_crontab(argv[1], log, get_whitelisted_users(argv))
(options, args) = get_whitelisted_users(argv)
for crontab in args[1:]:
print('Checking correctness of %s' % crontab)
return check.check_crontab(crontab, log, options['whitelisted_users'])
def get_whitelisted_users(argv):
"""Gets the list of whitelisted users, if any.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment