From 8101672c3add7341c8488ba79a92167eddc37946 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 10 Oct 2019 16:49:36 -0400 Subject: [PATCH] Fix discovery with python3 --- .../confluent/discovery/handlers/imm.py | 7 ++++-- .../confluent/discovery/handlers/smm.py | 5 +++- .../confluent/discovery/handlers/xcc.py | 4 +++- .../confluent/discovery/protocols/slp.py | 23 ++++++++----------- confluent_server/confluent/neighutil.py | 10 ++++---- 5 files changed, 27 insertions(+), 22 deletions(-) diff --git a/confluent_server/confluent/discovery/handlers/imm.py b/confluent_server/confluent/discovery/handlers/imm.py index a8468c19..9cabec9d 100644 --- a/confluent_server/confluent/discovery/handlers/imm.py +++ b/confluent_server/confluent/discovery/handlers/imm.py @@ -12,9 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +import codecs import confluent.discovery.handlers.bmc as bmchandler import pyghmi.exceptions as pygexc import pyghmi.ipmi.private.util as pygutil +import confluent.util as util import struct class NodeHandler(bmchandler.NodeHandler): @@ -37,8 +39,9 @@ class NodeHandler(bmchandler.NodeHandler): if wronguuid: # we need to fix the first three portions of the uuid uuidprefix = wronguuid.split('-')[:3] - uuidprefix = struct.pack( - '