Module: check_mk
Branch: master
Commit: 1f680da97b1d5dc0e51cd944239d91761f668621
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f680da97b1d5d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jun 26 16:25:40 2017 +0200
4899 FIX Don't fail WATO snapshot creation because of modified temporary files
Change-Id: I49801f5fb3c32206084c5c45b0f269c7ac88ea6a
---
.werks/4899 | 11 +++++++++++
web/htdocs/multitar.py | 3 +++
2 files changed, 14 insertions(+)
diff --git a/.werks/4899 b/.werks/4899
new file mode 100644
index 0000000..eeae645
--- /dev/null
+++ b/.werks/4899
@@ -0,0 +1,11 @@
+Title: Don't fail WATO snapshot creation because of modified temporary files
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1498487120
+
+
diff --git a/web/htdocs/multitar.py b/web/htdocs/multitar.py
index 835036e..0c565ec 100644
--- a/web/htdocs/multitar.py
+++ b/web/htdocs/multitar.py
@@ -44,6 +44,9 @@ def create(filename, components):
what, name, path = component
excludes = []
+ # exclude all temporary files
+ excludes.append(".*new*")
+
abspath = os.path.abspath(path)
if os.path.exists(path):
if what == "dir":