Loading transfer_service/import_amqp_server.py +3 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,9 @@ class ImportAMQPServer(AMQPServer): def execute_callback(self, requestBody): # 'requestType' and 'path' attributes are mandatory if "requestType" not in requestBody or "path" not in requestBody: response = { "errorCode": 1, "errorMsg": "Malformed request, missing parameters." } response = { "responseType": "ERROR", "errorCode": 1, "errorMsg": "Malformed request, missing parameters." } elif requestBody["requestType"] == "NODE_IMPORT": path = os.path.abspath(requestBody["path"]) username = requestBody["userName"] Loading Loading
transfer_service/import_amqp_server.py +3 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,9 @@ class ImportAMQPServer(AMQPServer): def execute_callback(self, requestBody): # 'requestType' and 'path' attributes are mandatory if "requestType" not in requestBody or "path" not in requestBody: response = { "errorCode": 1, "errorMsg": "Malformed request, missing parameters." } response = { "responseType": "ERROR", "errorCode": 1, "errorMsg": "Malformed request, missing parameters." } elif requestBody["requestType"] == "NODE_IMPORT": path = os.path.abspath(requestBody["path"]) username = requestBody["userName"] Loading