-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CP-32625: xenops-cli - replace handwritten JSON prettifier with yojson
Previously, the output of `xenops-cli diagnostics` was ill-formed JSON, as keys weren't quoted strings and objects weren't separated by commas. Just use yojson.prettify instead. Before: ``` $ xenops-cli diagnostics { vm_actions: {} tasks: [] updates: { updates: [] barriers: [] } scheduler: [] workers: [ { state: Idle } { state: Idle } { state: Idle } ] queues: [] } ``` After: ``` $ xenops-cli diagnostics { "vm_actions": {}, "tasks": [], "updates": { "updates": [], "barriers": [] }, "scheduler": [], "workers": [ { "state": "Idle" }, { "state": "Idle" }, { "state": "Idle" } ], "queues": [] } ``` Nothing seems to rely on parsing the output of xenops-cli, so this should be safe. Signed-off-by: Andrii Sultanov <[email protected]>
- Loading branch information
1 parent
b84e057
commit f258189
Showing
2 changed files
with
5 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters