bundlewrap/bundles/cron/items.py

7 lines
164 B
Python
Raw Normal View History

2020-06-01 09:54:28 +00:00
files = {}
for crontab, content in node.metadata.get('cron', {}).items():
files['/etc/cron.d/{}'.format(crontab)] = {
'content': content + "\n",
}