Skip to content

Commit

Permalink
Merge pull request #2958 from freenas/return_job
Browse files Browse the repository at this point in the history
Return job result
  • Loading branch information
sonicaj committed Apr 26, 2019
2 parents 651b24c + 852ace0 commit a81a5ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewared/middlewared/client/client.py
Expand Up @@ -263,6 +263,7 @@ def result(self):
if job['exc_info'] and job['exc_info']['type'] == 'VALIDATION':
raise ValidationErrors(job['exc_info']['extra'])
raise ClientException(job['error'], trace=job['exception'])
return job['result']


class ErrnoMixin:
Expand Down

0 comments on commit a81a5ca

Please sign in to comment.