Skip to content

Commit cb876de

Browse files
bug: Remove trailing % character from port listing output
Co-Authored-By: [email protected] <[email protected]>
1 parent 2ce188f commit cb876de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/print/cluster_ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var portsTmplRowSrc = `{{- range . }}
1818
{{- $isWildcard := .IsWildcard }}
1919
{{- $state := .State }}
2020
{{- range .ExposedPorts }}
21-
{{ $id }} {{ $upstreamPort }} {{ .Protocol }} {{ formatURL .Protocol $hostname }} {{ $isWildcard }} {{ printf "%-12s" $state }}
21+
{{ $id }} {{ $upstreamPort }} {{ .Protocol }} {{ formatURL .Protocol $hostname }} {{ $isWildcard }} {{ $state }}
2222
{{- end }}
2323
{{- end }}`
2424
var portsTmplSrc = fmt.Sprint(portsTmplHeaderSrc) + portsTmplRowSrc

cli/print/vm_ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var vmPortsTmplRowSrc = `{{- range . }}
1717
{{- $hostname := .Hostname }}
1818
{{- $state := .State }}
1919
{{- range .ExposedPorts }}
20-
{{ $id }} {{ $upstreamPort }} {{ .Protocol }} {{ formatURL .Protocol $hostname }} {{ printf "%-12s" $state }}
20+
{{ $id }} {{ $upstreamPort }} {{ .Protocol }} {{ formatURL .Protocol $hostname }} {{ $state }}
2121
{{- end }}
2222
{{- end }}`
2323
var vmPortsTmplSrc = fmt.Sprint(vmPortsTmplHeaderSrc) + vmPortsTmplRowSrc

0 commit comments

Comments
 (0)