# timeout argument, but we keep it for backward compat with old python binding
self.require_state("connected")
- cmd = cstr_list(cmd, 'c')
+ cmd = [cstr(cmd, 'cmd')]
if isinstance(target, int):
# NOTE(sileht): looks weird but test_monmap_dump pass int
# timeout argument, but we keep it for backward compat with old python binding
self.require_state("connected")
- cmd = cstr_list(cmd, 'cmd')
- inbuf = cstr(inbuf, 'inbuf')
+ cmds = [cstr(cmd, 'cmd')]
cdef:
int _osdid = osdid
- char **_cmd = to_bytes_array(cmd)
+ char **_cmd = to_bytes_array(cmds)
size_t _cmdlen = len(cmd)
char *_inbuf = inbuf
# timeout argument, but we keep it for backward compat with old python binding
self.require_state("connected")
- cmd = cstr_list(cmd, 'cmd')
+ cmds = [cstr(cmd, 'cmd')]
inbuf = cstr(inbuf, 'inbuf')
target = cstr(target, 'target', opt=True)
cdef:
char *_target = opt_str(target)
- char **_cmd = to_bytes_array(cmd)
- size_t _cmdlen = len(cmd)
+ char **_cmd = to_bytes_array(cmds)
+ size_t _cmdlen = len(cmds)
char *_inbuf = inbuf
size_t _inbuf_len = len(inbuf)