Bugfix: do not try to double encode data

This commit is contained in:
Alexander Kukushkin
2015-10-15 16:17:11 +02:00
parent 16a0a3481d
commit f35d109810
+1 -1
View File
@@ -198,7 +198,7 @@ class ZooKeeper(AbstractDCS):
self.client.retry(self.client.set, self.failover_path, value.encode('utf-8'), version=index or -1)
return True
except NoNodeError:
return value == '' or (not index and self._create(self.failover_path, value.encode('utf-8')))
return value == '' or (not index and self._create(self.failover_path, value))
except:
logging.exception('set_failover_value')
return False