diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-09-08 04:24:25 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-09-08 04:24:25 +0200 |
commit | 1f18ba88e69ad73f998bd96711a9186d6cf115a8 (patch) | |
tree | ce1d66321f096396f8c3ae35cd9e56e856e96189 /src/conf-mode/vyos-update-crontab.py | |
parent | 4f47f37280d774fb7ad935616c8391d0689a1f36 (diff) | |
download | vyos-1x-1f18ba88e69ad73f998bd96711a9186d6cf115a8.tar.gz vyos-1x-1f18ba88e69ad73f998bd96711a9186d6cf115a8.zip |
Restructure the cron script and fix bugs.
Do not inherit from the Config class, it only made things more complicated.
Remove the sys.path.append that was made necessary by using partial paths where full
paths are expected.
Exit with 1 (to make commit fail properly) if VyOSError is raised.
Replace the OO representation of cron jobs with simple hashes: the format is not expected
to grow any more complex and encapsulation will hardly be necessary (though if one can think of
a good OO design for this, it's welcome).
Do not mix config reading and validation to enable changing the syntax without changing any of the
code but get_config()
Diffstat (limited to 'src/conf-mode/vyos-update-crontab.py')
0 files changed, 0 insertions, 0 deletions