Skip to content

Commit

Permalink
Do not try to dump a job object
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 committed Jul 1, 2024
1 parent 5e85d0a commit b71c885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/middlewared/middlewared/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,9 @@ def dump_args(self, args, method=None, method_name=None):
for i, arg in enumerate(args)]

def dump_result(self, method, result, expose_secrets):
if isinstance(result, Job):
return result

if hasattr(method, "new_style_returns"):
return serialize_result(method.new_style_returns, result, expose_secrets)

Expand Down

0 comments on commit b71c885

Please sign in to comment.