Module: check_mk
Branch: master
Commit: 60da7c3bedd18be08b1b8f44f201792fa2c20652
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60da7c3bedd18b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 6 11:43:42 2012 +0200
Fix creation of nagios directories
---
web/htdocs/lib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index 1304038..5030383 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -63,7 +63,7 @@ class MKInternalError(Exception):
# and make it writable for the group
def make_nagios_directory(path):
if not os.path.exists(path):
- parent_dir, lastpart = path.rsplit('/', 1)
+ parent_dir, lastpart = path.rstrip('/').rsplit('/', 1)
make_nagios_directory(parent_dir)
try:
os.mkdir(path)