Commit 1aa88d95 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Ensure we just serialize JSON if there is data


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 0092d621
......@@ -731,8 +731,12 @@ class NodeHttpServer(http.server.HttpServer):
"""Runs oob on node.
"""
return serializer.LoadJson(backend.RunOob(params[0], params[1], params[2],
params[3]))
output = backend.RunOob(params[0], params[1], params[2], params[3])
if output:
result = serializer.LoadJson(output)
else:
result = None
return result
@staticmethod
def perspective_write_ssconf_files(params):
......
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