Skip to content

Commit 5ad9813

Browse files
committed
change routed handling in describe output
1 parent 30d7c26 commit 5ad9813

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/cmd/beta/network/describe/describe.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,14 @@ func outputResult(p *print.Printer, outputFormat string, network *iaas.Network)
152152
table.AddSeparator()
153153
}
154154

155+
routed := false
155156
if network.Routed != nil {
156-
table.AddRow("ROUTED", *network.Routed)
157-
table.AddSeparator()
157+
routed = *network.Routed
158158
}
159159

160+
table.AddRow("ROUTED", routed)
161+
table.AddSeparator()
162+
160163
if network.Gateway != nil {
161164
table.AddRow("IPv4 GATEWAY", *network.Gateway.Get())
162165
table.AddSeparator()

0 commit comments

Comments
 (0)