mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 09:13:39 +00:00
Always use lowercase when pinning resources (#33721)
This commit is contained in:
parent
23907cadd0
commit
5a7544c127
|
@ -417,9 +417,9 @@ export function Resources() {
|
|||
|
||||
export function resourceKey(resource: UnifiedResource) {
|
||||
if (resource.kind === 'node') {
|
||||
return `${resource.hostname}/${resource.id}/node`;
|
||||
return `${resource.hostname}/${resource.id}/node`.toLowerCase();
|
||||
}
|
||||
return `${resource.name}/${resource.kind}`;
|
||||
return `${resource.name}/${resource.kind}`.toLowerCase();
|
||||
}
|
||||
|
||||
export function resourceName(resource: UnifiedResource) {
|
||||
|
|
Loading…
Reference in a new issue