Fix a back-compat bug in multi-port services

Yu-Ju changed something just before this went in that exposed this bug.
we did not re-run Travis on my PR.  Bad us.
pull/6/head
Tim Hockin 2015-03-31 14:29:22 -07:00
parent d95f744eea
commit 70b9e56952
2 changed files with 2 additions and 0 deletions

View File

@ -710,6 +710,7 @@ func init() {
}
// Produce legacy fields.
out.Protocol = ProtocolTCP
if len(in.Spec.Ports) > 0 {
out.PortName = in.Spec.Ports[0].Name
out.Port = in.Spec.Ports[0].Port

View File

@ -641,6 +641,7 @@ func init() {
}
// Produce legacy fields.
out.Protocol = ProtocolTCP
if len(in.Spec.Ports) > 0 {
out.PortName = in.Spec.Ports[0].Name
out.Port = in.Spec.Ports[0].Port