Просмотр исходного кода

[sentry] Convert sasl parameters to strings

Romain Rigaux 10 лет назад
Родитель
Сommit
77019d3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      desktop/core/ext-py/kazoo-2.0/kazoo/protocol/connection.py

+ 2 - 2
desktop/core/ext-py/kazoo-2.0/kazoo/protocol/connection.py

@@ -634,8 +634,8 @@ class ConnectionHandler(object):
 
     def _authenticate_with_sasl(self, host, timeout):
         saslc = sasl.Client()
-        saslc.setAttr('host', host)
-        saslc.setAttr('service', self.sasl_server_principal)
+        saslc.setAttr('host', str(host))
+        saslc.setAttr('service', str(self.sasl_server_principal))
         saslc.init()
 
         ret, chosen_mech, initial_response = saslc.start('GSSAPI')