mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
More fixes for python3/2 compatibility
This commit is contained in:
parent
a84b88e269
commit
62084b3605
@ -2338,7 +2338,7 @@ class ConfigManager(object):
|
||||
return
|
||||
with cls._syncstate:
|
||||
if (cls._syncrunning and cls._cfgwriter is not None and
|
||||
not cls._cfgwriter.dead):
|
||||
cls._cfgwriter.isAlive()):
|
||||
cls._writepending = True
|
||||
return
|
||||
if cls._syncrunning: # This suggests an unclean write attempt,
|
||||
|
@ -705,7 +705,8 @@ def detected(info):
|
||||
|
||||
def b64tohex(b64str):
|
||||
bd = base64.b64decode(b64str)
|
||||
return ''.join(['{0:02x}'.format(ord(x)) for x in bd])
|
||||
bd = bytearray(bd)
|
||||
return ''.join(['{0:02x}'.format(x) for x in bd])
|
||||
|
||||
|
||||
def get_enclosure_chain_head(nodename, cfg):
|
||||
|
Loading…
Reference in New Issue
Block a user