Commit 5161d890 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Fix whitelisted users.

Not sure why, but this was completely broken. Not sure what I'd been
parent d4cbe2ca
......@@ -38,8 +38,10 @@ def main(argv):
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.
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