From 131e64ef0ecf40f8f234123b8774c45ad57855f3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 1 Feb 2014 19:43:28 -0500 Subject: [PATCH] Fix cval assignment exception For SOL sessions, the queue could be touched without anything in ipmiq. Have cval be set to something benign in those cases to avoid a trace in debug. --- plugins/hardwaremanagement/ipmi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hardwaremanagement/ipmi.py b/plugins/hardwaremanagement/ipmi.py index e8d66609..27afe019 100644 --- a/plugins/hardwaremanagement/ipmi.py +++ b/plugins/hardwaremanagement/ipmi.py @@ -56,6 +56,7 @@ def _process_chgs(intline): global chainpulled os.read(intline,1) # answer the bell chainpulled = False + cval = () try: while ipmiq: cval = ipmiq.popleft()