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 <>
Reviewed-by: default avatarIustin Pop <>
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],
output = backend.RunOob(params[0], params[1], params[2], params[3])
if output:
result = serializer.LoadJson(output)
result = None
return result
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