Explorar o código

[sentry] Convert sasl parameters to strings

Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
77019d3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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')