Yelp/Tron — Issue #84: Bug? unsupported format character
Author: krausfm
Created: 2012-02-08 17:05:49+00:00
State: open

Hi Guys,

we are currently migrating all our cronjobs to Tron and have a few issues with actions containing things like "date" + it's format, eg:

> scp /logs/bla_*.$(date -d 'today' +\%Y\%m\%d*).gz logs@logs:/archive/%(hostname)/

Tried different ways of escaping % but always get something like this:

Feb 8 17:56:00 tron[30735]: Failed generating rendering command. Bad format Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/tron/action.py", line 396, in command self.rendered_command = self.render_command() File "/usr/local/lib/python2.6/dist-packages/tron/action.py", line 390, in render_command return self.action.command % self.context ValueError: unsupported format character 'Y' (0x59) at index 90

Am i missing something obvious?