From 3cf6cb7f2d69130d4b5f21db7f6c094661ae2529 Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Mon, 27 May 2013 16:17:23 +0000 Subject: [PATCH] check_hpacucli: ignore hpacucli output that starts with "Note:" --- check_hpacucli/check_hpacucli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_hpacucli/check_hpacucli.py b/check_hpacucli/check_hpacucli.py index 2b5e3c4..e451c84 100644 --- a/check_hpacucli/check_hpacucli.py +++ b/check_hpacucli/check_hpacucli.py @@ -173,6 +173,7 @@ def run_hpacucli(type='controllers', controller=None): for i in output: if len(i) == 0: continue if i.strip() == '': continue + if i.startswith('Note:'): continue if type=='controllers' and i[0] != ' ': # No space on first line if object and not object in objects: objects.append(object) object = {}