From 974c3980fcf416a7f1cf3774f7ede0df2bdb2ec8 Mon Sep 17 00:00:00 2001 From: Samuel M Smith Date: Tue, 1 Apr 2014 12:41:59 -0600 Subject: [PATCH] updated call signature of packByte and unpackByte to match ioflo change --- salt/transport/road/raet/packeting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/transport/road/raet/packeting.py b/salt/transport/road/raet/packeting.py index 78425a4609..915a40b6e4 100644 --- a/salt/transport/road/raet/packeting.py +++ b/salt/transport/road/raet/packeting.py @@ -154,7 +154,7 @@ class TxHead(Head): values = [] for field in raeting.PACKET_FLAG_FIELDS: values.append(1 if self.packet.data.get(field, 0) else 0) - return packByte(format='11111111', fields=values) + return packByte(fmt='11111111', fields=values) class RxHead(Head): ''' @@ -243,7 +243,7 @@ class RxHead(Head): ''' Unpacks all the flag fields from a single two char hex string ''' - values = unpackByte(format='11111111', byte=int(flags, 16), boolean=True) + values = unpackByte(fmt='11111111', byte=int(flags, 16), boolean=True) for i, field in enumerate(raeting.PACKET_FLAG_FIELDS): if field in self.packet.data: self.packet.data[field] = values[i]