From 3d4462d7888f98d2ddebd521319dd31f53557d74 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 27 Aug 2021 18:29:38 -0400 Subject: [PATCH] Fix support for newer XCC firmware Newer XCC firmware requires more parameters for usermodify --- confluent_server/confluent/discovery/handlers/xcc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_server/confluent/discovery/handlers/xcc.py b/confluent_server/confluent/discovery/handlers/xcc.py index 4f746a9a..f99df402 100644 --- a/confluent_server/confluent/discovery/handlers/xcc.py +++ b/confluent_server/confluent/discovery/handlers/xcc.py @@ -340,6 +340,10 @@ class NodeHandler(immhandler.NodeHandler): rsp, status = wc.grab_json_response_with_status( '/api/function', {'USER_UserModify': '{0},{1},,1,Administrator,0,0,0,0,,8,'.format(uid, username)}) + elif status == 200 and rsp.get('return', 0) == 13: + rsp, status = wc.grab_json_response_with_status( + '/api/function', + {'USER_UserModify': '{0},{1},,1,4,0,0,0,0,,8,,,'.format(uid, username)}) self.tmppasswd = None self._currcreds = (username, passwd)