Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 46dadd4

Browse files
committed
Fix parsing of user/passord properties in zenoh.login() - fixes #1
1 parent e6a0ff0 commit 46dadd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zenoh/zenoh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def login(locator, properties=None):
4343
'''
4444
zprops = {} if properties is None else {
4545
zenoh.net.ZN_USER_KEY if k == "user" else
46-
zenoh.net.ZN_PASSWORD_KEY: val
46+
zenoh.net.ZN_PASSWD_KEY: val
4747
for k, val in properties.items()
48-
if k == "user" or key == "password"}
48+
if k == "user" or k == "password"}
4949

5050
return Zenoh(Session.open(locator, zprops))
5151

0 commit comments

Comments
 (0)