deck-chores
deck-chores copied to clipboard
Update parsers.py
Hello again!
If the container-labels for a single service are omitted, the deck-chores service fails and dies:
[...]
labels:
deck-chores.command: "echo hello"
deck-chores.interval: "hourly"
[...]
The trailing commit fixes the service failing on misconfigured/broken job label definitions, and prints an error instead.
Sorry for missing / failing tests.
Thanks!
sorry, but this certainly requires tests. i'm also having trouble to understand what your description and example have to do with the proposed change.
A new coworker missspelled the label (forgot the naming part) and the parser broke the hole deck-chores container. The container fainted with a python split/parse error.
[...]
labels:
deck-chores.command: "echo hello"
deck-chores.interval: "hourly"
[...]
VS
[...]
labels:
deck-chores.name-for-cron.command: "echo hello"
deck-chores.name-for-cron.interval: "hourly"
[...]