fix(services) - Fix exposed ports (#746)

pull/747/head
Thomas Krzero 2017-03-30 11:39:37 +02:00 committed by Anthony Lapenna
parent a48503d821
commit 9fda8f9c92
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ function ServiceViewModel(data, runningTasks, nodes) {
this.Command = containerSpec.Command;
this.Secrets = containerSpec.Secrets;
}
if (data.Spec.EndpointSpec) {
this.Ports = data.Spec.EndpointSpec.Ports;
if (data.Endpoint) {
this.Ports = data.Endpoint.Ports;
}
this.Mounts = [];