Match both lineinfile states

This commit is contained in:
Michael Simacek 2015-09-03 16:05:19 +00:00
parent b5a4d2f5e3
commit 316e430614

View file

@ -171,7 +171,7 @@
- name: HOTFIX datetime error on unfinished tasks with finished parent
lineinfile: dest="/usr/lib/python2.7/site-packages/koschei/backend.py"
regexp="finished=datetime\.fromtimestamp\(task\['completion_ts'\]\),"
regexp="finished=datetime\.fromtimestamp\(task\['completion_ts'\]\)"
line="finished=datetime.fromtimestamp(task['completion_ts']) if task['completion_ts'] else None,"
when: env == "production"
tags: