fix(@cockpit/services): send only process names to embark-api-client

`webSocketProcess` function in `embark-api-client` expects only a process name,
but cockpit was calling it with name-strings prepended with `/process-logs/`
resulting in bad URLs. Revise cockpit's `services/api` module to call
`webSocketProcess` with process names only.
This commit is contained in:
Michael Bradley, Jr 2019-04-15 19:24:44 -05:00 committed by Iuri Matias
parent a39c2c82d7
commit eb9de680d3

View File

@ -179,7 +179,7 @@ export function listenToChannel(credentials, channel) {
}
export function webSocketProcess(credentials, processName) {
return embarkAPI.webSocketProcess(credentials, `/process-logs/${processName}`);
return embarkAPI.webSocketProcess(credentials, processName);
}
export function webSocketServices(credentials) {
@ -205,4 +205,3 @@ export function webSocketBlockHeader(credentials) {
export function websocketGasOracle(credentials) {
return embarkAPI.websocketGasOracle(credentials, `/blockchain/gas/oracle`);
}