Module: check_mk
Branch: master
Commit: 68f14653c0ceb35abc8564ce1c451d9f87c0c3b6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68f14653c0ceb3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 3 12:48:08 2010 +0100
Fixed undefined var after non sudo exception during --automation call
---
web/htdocs/wato.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 11f5921..1cb6c67 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -501,6 +501,7 @@ def check_mk_automation(command, args=[], indata=""):
commandargs = [ 'sudo', '/bin/su', '-', omd_site,
'-c', 'check_mk --automation' ]
cmd = commandargs[:-1] + [ commandargs[-1] + ' ' + ' '.join([
command ] + args) ]
+ sudo_msg = ''
if commandargs[0] == 'sudo':
sudo_msg = ("<p>The webserver is running as user which has no rights
on the "
"needed Check_MK/Nagios files.<br />Please ensure you have
set-up "