Module: check_mk
Branch: master
Commit: 1fc70c7da2ec2298f780a5943d58b8e37c62d3b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1fc70c7da2ec22…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jul 28 14:34:10 2014 +0200
Small code cleanup in mk_jolokia
---
agents/plugins/mk_jolokia | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/agents/plugins/mk_jolokia b/agents/plugins/mk_jolokia
index ae0a013..679e27d 100755
--- a/agents/plugins/mk_jolokia
+++ b/agents/plugins/mk_jolokia
@@ -239,12 +239,12 @@ socket.setdefaulttimeout(1.0)
# of dicts).
for inst in instances:
for varname, value in [
- ( "server", server ),
- ( "port", port ),
- ( "user", user ),
+ ( "server", server ),
+ ( "port", port ),
+ ( "user", user ),
( "password", password ),
- ( "mode", mode ),
- ( "suburi", suburi ),
+ ( "mode", mode ),
+ ( "suburi", suburi ),
( "instance", instance )]:
if varname not in inst:
inst[varname] = value
@@ -253,6 +253,3 @@ for inst in instances:
inst["instance"] = inst["instance"].replace(" ",
"_")
query_instance(inst)
-
-
-