Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

orchestrator-client: return raw JSON for api call on error #1166

Merged
merged 4 commits into from
May 18, 2020

Conversation

shlomi-noach
Copy link
Collaborator

Fixes #949

when running orchestrator-client -c api -path ... and operation returns with error, return complete JSON as opposed to parsing the error text.

Parsing the error text remains on all "normal" commands. For example, consider these two calls:

$ orchestrator-client -c stop-replica -i 127.0.0.1:10119
dial tcp 127.0.0.1:10119: connect: connection refused
$ orchestrator-client -c api -path stop-replica/127.0.0.1/10119
{ "Code": "ERROR", "Message": "dial tcp 127.0.0.1:10119: connect: connection refused", "Details": null }

@shlomi-noach shlomi-noach merged commit 7ba6a36 into master May 18, 2020
@shlomi-noach shlomi-noach deleted the orchestrator-client-api-raw branch May 18, 2020 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

orchestrator api graceful-master-takeover does not always return a code
1 participant