소스 검색

[sentry] Convert sasl parameters to strings

Romain Rigaux 10 년 전
부모
커밋
77019d3cb0
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')