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

Fix option parsing for real (fix options access).

parent 4bf20bf6
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ def main(argv): ...@@ -41,7 +41,7 @@ def main(argv):
(options, args) = parse_chkcrontab_options(argv) (options, args) = parse_chkcrontab_options(argv)
for crontab in args[1:]: for crontab in args[1:]:
print('Checking correctness of %s' % crontab) print('Checking correctness of %s' % crontab)
return check.check_crontab(crontab, log, options['whitelisted_users']) return check.check_crontab(crontab, log, options.whitelisted_users)
def parse_chkcrontab_options(argv): def parse_chkcrontab_options(argv):
"""Parse the options for chkcrontab. """Parse the options for chkcrontab.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment