Module: check_mk
Branch: master
Commit: b5d3f3d0fea40924fe1504b5b07819f679044f12
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b5d3f3d0fea409…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 6 15:33:06 2019 +0200
update for WK7259
Change-Id: Ifb051a3542dc2ff7acb7a66afdd04e51831a0ab4
---
cmk_base/discovery.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk_base/discovery.py b/cmk_base/discovery.py
index d32aae2..3c3c13c 100644
--- a/cmk_base/discovery.py
+++ b/cmk_base/discovery.py
@@ -29,7 +29,7 @@ import socket
import time
import signal
from typing import Callable, List, Text, Optional, Dict, Tuple # pylint:
disable=unused-import
-import pathlib2 as pathlib
+from pathlib2 import Path
from cmk.utils.regex import regex
import cmk.utils.tty as tty
@@ -1338,7 +1338,7 @@ def _save_autochecks_file(hostname, items):
if not os.path.exists(cmk.utils.paths.autochecks_dir):
os.makedirs(cmk.utils.paths.autochecks_dir)
- filepath = pathlib.Path() / cmk.utils.paths.autochecks_dir / ("%s.mk" %
hostname)
+ filepath = Path(cmk.utils.paths.autochecks_dir) / ("%s.mk" % hostname)
content = []
content.append("[")
for check_plugin_name, item, paramstring in items: