Skip to content

Commit

Permalink
fix: fixed role name not appearing in aws sso's session cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Sep 23, 2021
1 parent 36bc1de commit 13cadc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/session/session-card/detail.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export class DetailPipe implements PipeTransform {
case(SessionType.awsIamUser):
return ''; // (session as AwsIamUserSession).sessionName;
case(SessionType.awsSsoRole):
return (session as AwsSsoRoleSession).roleArn.split('role/')[1];
const splittedRoleArn = (session as AwsSsoRoleSession).roleArn.split('/');
splittedRoleArn.splice(0, 1);
return splittedRoleArn.join('/');
case(SessionType.awsIamRoleChained):
return (session as AwsIamRoleChainedSession).roleArn.split('role/')[1];
}
Expand Down

0 comments on commit 13cadc0

Please sign in to comment.