2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-16 04:38:19 +00:00

Fix pyghmi behavior on BMC NACK

When BMC sent NACK, pyghmi incorrectly attempted to construct new payload
by concatenating a tuple and str.  Fix by converting the tuple to
str prior to sending.

Change-Id: Ia07384651870bf01e7dc24757e1e00018ab84556
This commit is contained in:
Jarrod Johnson 2013-09-14 10:03:56 -04:00
parent 781a7829be
commit 35b50fb705

View File

@ -245,6 +245,7 @@ class Console(object):
else: # retry all or part of packet, but in a new form
# also add pending output for efficiency and ease
newtext = self.lastpayload[4 + ackcount:]
newtext = struct.pack("B"*len(newtext), *newtext)
self.pendingoutput = newtext + self.pendingoutput
self._sendpendingoutput()
elif self.awaitingack: # session marked us as happy, but we are not