Use bytes for coordination member

It seems that we need bytes for building a member ID.

Closes-Bug: #1667117
Change-Id: I87bb6ebf03ce4d04776743fd1a25e67b8c8026a1
This commit is contained in:
Thomas Herve 2017-02-22 16:49:58 -05:00
parent 3eb256abff
commit 04eaee64fb

View File

@ -84,7 +84,8 @@ class PartitionCoordinator(object):
self.conf = conf
self._coordinator = None
self._groups = set()
self._my_id = my_id or str(uuid.uuid4())
# XXX uuid4().bytes ought to work, but it requires ascii for now
self._my_id = my_id or str(uuid.uuid4()).encode('ascii')
def start(self):
backend_url = self.conf.coordination.backend_url