Skip to content

fix(agent/agentcontainers): improve testing of convertDockerInspect, return correct host port #16887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 18, 2025
Merged
Prev Previous commit
Next Next commit
rm extraneous null check
  • Loading branch information
johnstcn committed Mar 18, 2025
commit 2f0180e58331e09a1ca0929fa69e968ca5a51cad
5 changes: 1 addition & 4 deletions site/src/modules/resources/AgentDevcontainerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
container.ports.map((port) => {
const portLabel = `${port.port}/${port.network.toUpperCase()}`;
const hasHostBind =
port.host_port !== undefined &&
port.host_port !== null &&
port.host_ip !== undefined &&
port.host_ip !== null;
port.host_port !== undefined && port.host_ip !== undefined;
const helperText = hasHostBind
? `${port.host_ip}:${port.host_port}`
: "Not bound to host";
Expand Down