Command Executor : Invalid response_data when executed script fails 64/109664/9
authorJulien Fontaine <julien.fontaine@bell.ca>
Mon, 29 Jun 2020 23:54:27 +0000 (19:54 -0400)
committerJulien Fontaine <julien.fontaine@bell.ca>
Thu, 2 Jul 2020 15:36:20 +0000 (15:36 +0000)
commit01e3ff777b995767311be29ad51ebba53cb054c2
tree6906e5c275096ea6834a02fd04fc5c3b9102e563
parentca17370464f688d3bd5b63de12d9163ef8e31e08
Command Executor : Invalid response_data when executed script fails

* Modified command exec returned value in case of failure during execution. It now prints the response_data defined by the user
* Modified truncation method of the gRPC returned object to use ByteSize() to get the exact sizxe consumed within the buffer

Issue-ID: CCSDK-2501
Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca>
Change-Id: Ie1db8db265623b5137ab3946ff4e3abda1c54a78
ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutor.kt
ms/command-executor/src/main/docker/Dockerfile
ms/command-executor/src/main/python/command_executor_handler.py
ms/command-executor/src/main/python/command_executor_server.py
ms/command-executor/src/main/python/utils.py