Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize Pyreemote.ReemoteWrapper exec result #28

Open
XaviTorello opened this issue Feb 12, 2018 · 0 comments
Open

Standardize Pyreemote.ReemoteWrapper exec result #28

XaviTorello opened this issue Feb 12, 2018 · 0 comments

Comments

@XaviTorello
Copy link
Contributor

ReemoteWrapper.execute_request result must be improved to be able to integrate

  • error flag
  • message detail
  • error message detail
  • optional return code //review if it's needed

It applies to https://github.com/gisce/reemote/blob/adapt_code_to_allow_calls/pyreemote/pyreemote/telemeasure.py#L94

Proposed return schema:

{
    'error': True / False,
    'message': $stdout,
    'error_message': $sterr,
    'rc': $execution_return_code,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants