update test file and fixing set_user password bug

This commit is contained in:
Fanani M. Ihsan
2016-05-25 12:38:11 +07:00
parent bd6554f88d
commit 619aaf1f43
2 changed files with 8 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ class ZK(object):
privilege = const.USER_DEFAULT
privilege = chr(privilege)
command_string = pack('2sc6s30sc7sx24s', uid, privilege, password, name, chr(0), group_id, user_id)
command_string = pack('2sc8s28sc7sx24s', uid, privilege, password, name, chr(0), group_id, user_id)
cmd_response = self.__send_command(command=command, command_string=command_string, response_size=1024)
cmd_response['data'] = ''
if cmd_response.get('status'):