From d794d57fba81e2cf4dd923b1ddbe9f1663d3809c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 4 Oct 2019 16:55:49 -0400 Subject: [PATCH] Fix mistake in python3-ification Change-Id: Ia2a4feb16c8b9c0fa4206d72c08e1b5f8841021d --- pyghmi/ipmi/oem/lenovo/imm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index e3403640..3fd8a82c 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -133,7 +133,7 @@ class IMMClient(object): @staticmethod def _parse_builddate(strval): - if not isinstance(strval, ,str): + if not isinstance(strval, str) and isinstance(strval, bytes): strval = strval.decode('utf-8') try: return datetime.strptime(strval, '%Y/%m/%d %H:%M:%S')