2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Switch to python2/3 agnostic lower

The string.lower is not in python3
This commit is contained in:
Jarrod Johnson 2019-06-04 16:27:20 -04:00
parent e09c2ed8eb
commit 6de605c298

View File

@ -15,7 +15,6 @@
import confluent.discovery.handlers.bmc as bmchandler
import pyghmi.exceptions as pygexc
import pyghmi.ipmi.private.util as pygutil
import string
import struct
class NodeHandler(bmchandler.NodeHandler):
@ -44,7 +43,7 @@ class NodeHandler(bmchandler.NodeHandler):
uuidprefix[12:16]
self.info['uuid'] = uuidprefix + '-' + '-'.join(
wronguuid.split('-')[3:])
self.info['uuid'] = string.lower(self.info['uuid'])
self.info['uuid'] = self.info['uuid'].lower()
if ff not in ('dense-computing', 'BC2'):
# do not probe unless it's a dense platform
return