~oddbloke/charms/trusty/ubuntu-repository-cache/fix-cron-template

Viewing all changes in revision 200.

  • Committer: Daniel Watkins
  • Date: 2015-09-03 15:57:12 UTC
  • Revision ID: daniel.watkins@canonical.com-20150903155712-96q3ixlgwo7bo62i
Fix cron template so cronjobs will actually run.

charmhelpers uses jinja2 for templating. jinja2 will strip the last
newline from a template, and cron won't run a file which doesn't end
with a newline.

https://bugs.launchpad.net/charm-helpers/+bug/1423599 is the
charm-helpers bug to disable this jinja2 behaviour.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: