From 9fda8f9c923177857013e7866e8d5bc691cb6b1d Mon Sep 17 00:00:00 2001 From: Thomas Krzero Date: Thu, 30 Mar 2017 11:39:37 +0200 Subject: [PATCH] fix(services) - Fix exposed ports (#746) --- app/models/service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/service.js b/app/models/service.js index c60c3faab..12c97971c 100644 --- a/app/models/service.js +++ b/app/models/service.js @@ -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 = [];