diff --git a/app/extract_command.py b/app/extract_command.py index b08235194d96939a6b16acbbbf54a4ba5aaf2493..c54317fead4e6c70a53c35330abc9f47c8b4d64f 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']