blob: 3848ac4284fd60caad2eaa24d4550093e21fd79b (
plain)
1
2
3
4
5
6
7
8
|
# Reset any triggers of a job, cron triggers in particular (but not limited)
# This is useful for sandboxes to avoid unexpected cron jobs runs
def mangle(tree):
tag = tree.xpath('//triggers')[0]
for t in tag:
tag.remove(t)
tag.text = None
|