1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

feat(services) - add exposed ports (#690)

This commit is contained in:
Thomas Krzero 2017-03-28 15:12:54 +02:00 committed by Anthony Lapenna
parent 0e439d7ae6
commit ffa2cf62f5
3 changed files with 26 additions and 2 deletions

View file

@ -9,6 +9,16 @@ angular.module('portainer.helpers')
Labels: node.Spec.Labels,
Availability: node.Spec.Availability
};
},
getManagerIP: function(nodes) {
var managerIp;
for (var n in nodes) {
if (undefined === nodes[n].ManagerStatus || nodes[n].ManagerStatus.Reachability !== "reachable") {
continue;
}
managerIp = nodes[n].ManagerStatus.Addr.split(":")[0];
}
return managerIp;
}
};
}]);