mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
fix(ai): pass correct identifiers to Docker container discovery (#1315)
Use host.agentId and container.name for DiscoveryTab props to match backend storage keys. Previously host.id (derived ID) and container.id (Docker hash) were used, causing discovery lookups to always miss.
This commit is contained in:
parent
72be883f4e
commit
3a263bc4f0
1 changed files with 4 additions and 4 deletions
|
|
@ -1683,8 +1683,8 @@ const DockerContainerRow: Component<{
|
|||
<Show when={activeTab() === 'discovery'}>
|
||||
<DiscoveryTab
|
||||
resourceType="docker"
|
||||
hostId={host.id}
|
||||
resourceId={container.id}
|
||||
hostId={host.agentId || host.id}
|
||||
resourceId={container.name || container.id}
|
||||
hostname={container.name}
|
||||
guestId={container.id}
|
||||
customUrl={props.guestMetadata?.[container.id]?.customUrl}
|
||||
|
|
@ -2164,8 +2164,8 @@ const DockerServiceRow: Component<{
|
|||
<Show when={activeTab() === 'discovery'}>
|
||||
<DiscoveryTab
|
||||
resourceType="docker"
|
||||
hostId={host.id}
|
||||
resourceId={service.id || service.name || ''}
|
||||
hostId={host.agentId || host.id}
|
||||
resourceId={service.name || service.id || ''}
|
||||
hostname={service.name || service.id || 'Service'}
|
||||
guestId={resourceId()}
|
||||
customUrl={props.guestMetadata?.[resourceId()]?.customUrl}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue