2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 11:48:33 +00:00

Convert data tuple to a list

The data parameter is defaulted to a tuple, to avoid a TypeError
this needs to be converted to a list before it can be concatenated
with another list.

Change-Id: Iba42196e9f9b9315b684a5ceadf16313f13fdd25
This commit is contained in:
Derek Higgins 2016-06-21 10:49:13 +01:00
parent 8ac1385f3c
commit 98798b2372

View File

@ -717,7 +717,7 @@ class Session(object):
if retry is None:
retry = not self.servermode
if self.servermode:
data = [code] + data
data = [code] + list(data)
if netfn is None:
netfn = self.clientnetfn
if command is None: