Skip to content

Commit 7561cb1

Browse files
committed
MB-35506 Handle non latin char for auth
Change-Id: I7646b322146b72bf6bf489942064ad7f5f0ae6eb Reviewed-on: http://review.couchbase.org/113133 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Carlos Gonzalez <carlos.gonzalez@couchbase.com>
1 parent ef00d54 commit 7561cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def __init__(self, hostname, username, password, sslFlag=False, verifyCert=True,
9292
self.verifyCert = False
9393
self.caCert = False
9494

95-
self.username = username
96-
self.password = password
95+
self.username = username.encode('utf-8').decode('latin1')
96+
self.password = password.encode('utf-8').decode('latin1')
9797
self.timeout = timeout
9898
self.ssl = self.hostname.startswith("https://")
9999
self.debug = debug

0 commit comments

Comments
 (0)