Skip to content

Fix json output of bitmaskctl status

In order to parse the different statuses of each service, the json output should not print tIn order to parse the different he "result" value into a string, but into different fields:

(venv) --- git/bitmask-dev ‹master* ⁇› » bitmaskctl status --json      
WARNING:vext:Could not add extra path: /usr/share/sip
{
  "result": "{\"web\": \"running\", \"keymanager\": \"running\", \"soledad\": \"running\", \"mail\": \"running\", \"vpn\": \"running\", \"backend\": \"default\"}", 
  "error": null
}


(venv) --- git/bitmask-dev ‹master* ⁇› » bitmaskctl status --json  | jq .
WARNING:vext:Could not add extra path: /usr/share/sip
{
  "result": "{\"web\": \"running\", \"keymanager\": \"running\", \"soledad\": \"running\", \"mail\": \"running\", \"vpn\": \"running\", \"backend\": \"default\"}",
  "error": null
}