From a03ed7df411d789e1e50621ddbd0599bb71cfcde Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Tue, 25 Jan 2011 10:51:48 +0100 Subject: [PATCH] Small fix Signed-off-by: Sven Velt --- monitoringplugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoringplugin.py b/monitoringplugin.py index 32ad1e2..3e89939 100644 --- a/monitoringplugin.py +++ b/monitoringplugin.py @@ -227,9 +227,9 @@ class MonitoringPlugin(object): self.add_multilineoutput(check.get('multilineoutput')) statusline = [] - for retcode in [2, 1, 3, 0]: + for retcode in self.returncode_priority: if len(out[retcode]): - statusline.append(str(len(out[retcode])) + ' ' + self.RETURNSTRINGS[retcode] + ': ' + '/'.join(out[retcode])) + statusline.append(str(len(out[retcode])) + ' ' + self.RETURNSTRINGS[retcode] + ': ' + ' '.join(out[retcode])) statusline = ', '.join(statusline) self.add_output(statusline)