1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(aci): introduce basic form validation (#4268)

* feat(aci): introduce basic form validation

* feat(aci): check every port bindings

* fix(aci): remove name and image warnings
This commit is contained in:
Chaim Lev-Ari 2020-08-25 10:45:06 +03:00 committed by GitHub
parent b4f97efb85
commit 6fa450a981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 3 deletions

View file

@ -39,6 +39,9 @@ export function CreateContainerGroupRequest(model) {
var addressPorts = [];
for (var i = 0; i < model.Ports.length; i++) {
var binding = model.Ports[i];
if (!binding.container || !binding.host) {
continue;
}
containerPorts.push({
port: binding.container,