Skip to content

Commit 93b13c1

Browse files
committed
fixup! feat(cli): display open ports in coder show
1 parent 2d8154e commit 93b13c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cliui/resources.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func WorkspaceResources(writer io.Writer, resources []codersdk.WorkspaceResource
9696
for index, agent := range resource.Agents {
9797
tableWriter.AppendRow(renderAgentRow(agent, index, totalAgents, options))
9898
if options.ListeningPorts != nil {
99-
if lp, ok := options.ListeningPorts[agent.ID]; ok {
99+
if lp, ok := options.ListeningPorts[agent.ID]; ok && len(lp.Ports) > 0 {
100100
tableWriter.AppendRow(table.Row{
101101
fmt.Sprintf(" %s─ %s", renderPipe(index, totalAgents), "Open Ports"),
102102
})

0 commit comments

Comments
 (0)