Skip to content

Commit

Permalink
Dashboard: fix checks in diagnostics (#7229)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
  • Loading branch information
akurinnoy authored Nov 16, 2017
1 parent c623c1e commit 9f27440
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ export class DiagnosticsWorkspaceStartCheck {
});

this.cheJsonRpcMasterApi.subscribeEnvironmentStatus(workspace.id, (message: any) => {
if (message.eventType === 'DESTROYED' && message.workspaceId === workspace.id) {
if (message.eventType === 'DESTROYED' && message.identity.workspaceId === workspace.id) {
diagnosticCallback.error('Error while starting the workspace : Workspace has been destroyed', 'Please check the diagnostic logs.');
}
if (message.eventType === 'ERROR' && message.workspaceId === workspace.id) {
if (message.eventType === 'ERROR' && message.identity.workspaceId === workspace.id) {
diagnosticCallback.error('Error while starting the workspace : ' + JSON.stringify(message));
}

if (message.eventType === 'RUNNING' && message.workspaceId === workspace.id && message.machineName === 'dev-machine') {
if (message.eventType === 'RUNNING' && message.identity.workspaceId === workspace.id && message.machineName === 'dev-machine') {
this.machineCallback.stateRunning('RUNNING');
}

Expand Down Expand Up @@ -282,7 +282,7 @@ export class DiagnosticsWorkspaceStartCheck {
diagnosticCallback.addContent(message);
});

this.cheJsonRpcMasterApi.subscribeEnvironmentOutput(workspace.id, (message: any) => {
this.cheJsonRpcMasterApi.subscribeWsAgentOutput(workspace.id, (message: any) => {
const content = message.text;
diagnosticCallback.addContent(content);

Expand Down

0 comments on commit 9f27440

Please sign in to comment.