Commit 02ae7dea authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix s3i messages variable

parent d9ec9e58
Pipeline #377810 failed with stages
in 46 seconds
......@@ -516,7 +516,7 @@ def on_get_value_request(self, msg):
get_value_reply.fillGetValueReply(
senderUUID=self.thing_id,
receiverUUID=[request_sender],
receiverUUIDs=[request_sender],
results=value,
msgUUID=reply_msg_uuid,
replyingToUUID=request_msg_id,
......@@ -679,7 +679,7 @@ def on_service_request(self, body_json):
)
service_reply.fillServiceReply(
senderUUID=self.thing_id,
receiverUUID=body_json.get("sender", None),
receiverUUIDs=body_json.get("sender", None),
serviceType=body_json.get("serviceType", None),
results={"error": "invalid functionalities (serviceType) {}".format(service_functionality)},
replyingToUUID=body_json.get("identifier", None),
......@@ -696,7 +696,7 @@ def on_service_request(self, body_json):
)
service_reply.fillServiceReply(
senderUUID=self.thing_id,
receiverUUID=body_json.get("sender", None),
receiverUUIDs=body_json.get("sender", None),
serviceType=body_json.get("serviceType", None),
results={"error": "invalid functionalities (serviceType) {}".format(service_type.split('/')[1])},
replyingToUUID=body_json.get("identifier", None),
......@@ -716,7 +716,7 @@ def on_service_request(self, body_json):
APP_LOGGER.critical("Invalid function arguments")
service_reply.fillServiceReply(
senderUUID=self.thing_id,
receiverUUID=body_json.get("sender", None),
receiverUUIDs=body_json.get("sender", None),
serviceType=body_json.get("serviceType", None),
results={"error": "invalid function arguments (parameters)"},
replyingToUUID=body_json.get("identifier", None),
......@@ -727,7 +727,7 @@ def on_service_request(self, body_json):
result = {"ok": result}
service_reply.fillServiceReply(
senderUUID=self.thing_id,
receiverUUID=body_json.get("sender", None),
receiverUUIDs=body_json.get("sender", None),
serviceType=body_json.get("serviceType", None),
results=result,
replyingToUUID=body_json.get("identifier", None),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment