Skip to content

Commit

Permalink
Fix service resolution logic in the dashboard (dotnet#2024)
Browse files Browse the repository at this point in the history
- We were using the wrong name
  • Loading branch information
davidfowl authored and radical committed Feb 6, 2024
1 parent 051d2c2 commit 5b5041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Dashboard/DcpDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static string GetDisplayName(Executable executable)
{
foreach (var serviceName in resourceServiceMappings)
{
if (_servicesMap.TryGetValue(name, out var service))
if (_servicesMap.TryGetValue(serviceName, out var service))
{
services.Add(new ResourceServiceSnapshot(service.Metadata.Name, service.AllocatedAddress, service.AllocatedPort));
}
Expand Down

0 comments on commit 5b5041a

Please sign in to comment.