diff --git a/python/grpcdemo_server.py b/python/grpcdemo_server.py index 76abfb1..edc0926 100644 --- a/python/grpcdemo_server.py +++ b/python/grpcdemo_server.py @@ -17,7 +17,7 @@ def runcommand(self, request, context): time.sleep(DELAY) - return grpcdemo_pb2.Results(cmd_results=subprocess.check_output(request.command.split())) + return grpcdemo_pb2.Results(cmd_results="%s: %s" % (socket.getfqdn(), subprocess.check_output(request.command.split()))) def serve():