Skip to content

Commit a37a992

Browse files
authored
APP-2517: org API key support (#419)
1 parent 04b5868 commit a37a992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/viam/rpc/dial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def __init__(self) -> None:
191191
self._lib.init_rust_runtime.argtypes = ()
192192
self._lib.init_rust_runtime.restype = ctypes.c_void_p
193193

194-
self._lib.dial.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_bool, ctypes.c_void_p)
194+
self._lib.dial.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_bool, ctypes.c_void_p)
195195
self._lib.dial.restype = ctypes.c_void_p
196196

197197
self._lib.free_rust_runtime.argtypes = (ctypes.c_void_p,)
@@ -215,6 +215,7 @@ async def dial(self, address: str, options: DialOptions) -> Tuple[Optional[str],
215215
path_ptr = await to_thread(
216216
self._lib.dial,
217217
address.encode("utf-8"),
218+
options.auth_entity.encode("utf-8") if options.auth_entity else None,
218219
type.encode("utf-8") if type else None,
219220
payload.encode("utf-8") if payload else None,
220221
insecure,

0 commit comments

Comments
 (0)