Always use lowercase when pinning resources (#33721)

This commit is contained in:
Michael 2023-10-20 11:05:37 -05:00 committed by GitHub
parent 23907cadd0
commit 5a7544c127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {