mirror of
				https://opendev.org/x/pyghmi
				synced 2025-11-04 05:12:25 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user