From 9081664a1727f687eef42aaffd79cb7cc06a3038 Mon Sep 17 00:00:00 2001 From: Chukwuemeka Michael Muonagor <c.muonagor@tu-braunschweig.de> Date: Mon, 15 Jul 2024 15:20:47 +0000 Subject: [PATCH] Update extract_command.py --- app/extract_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/extract_command.py b/app/extract_command.py index b082351..c54317f 100644 --- a/app/extract_command.py +++ b/app/extract_command.py @@ -65,7 +65,8 @@ def extract_command_fun(command): error_output = 'invalid qos name' + command[2] return error_output intent_dict['value'] = float(command[4]) - intent_dict['host'] = command[5:] + intent_dict['unit'] = command[5] + intent_dict['host'] = command[6:] #print('intent dict b4 send: ', intent_dict) requests.put(qos_intents_url, json=intent_dict) intent_dict['service_type'] = intent_dict['intent_type'] -- GitLab