Skip to content
Snippets Groups Projects
Commit a961c8c4 authored by Chris Hines's avatar Chris Hines
Browse files

cleanup some code in two services

parent 90c3ee0d
No related branches found
No related tags found
1 merge request!117Revert "Revert "Add MLeRP Monash""
Pipeline #113168 passed
......@@ -245,10 +245,12 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
//this.agentContents.next([]);
if (error.status == 0) {
this.notifications.notify("A network error occured. Are you connected to the internet?")
return;
}
if (error.stats == 401) {
this.sessionToken$.next(null);
console.log('session expired, why hasnt it refreshed automatically?')
return;
}
this.notifications.notify("Error querying ssh agent");
}
......@@ -354,7 +356,8 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
return this.getCert(token, key, apiserver).pipe(
map((cert) => [key,cert, token]))
}),
tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
tap((v) => console.log('in keycert$ pipe line', v))
//tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment