parse port count as integer

This commit is contained in:
Girish Ramakrishnan
2024-07-16 19:28:22 +02:00
parent 232cdb8cb1
commit 6d73dfdb40

View File

@@ -659,7 +659,7 @@ function postProcess(result) {
delete result.portCounts;
for (let i = 0; i < environmentVariables.length; i++) {
result.portBindings[environmentVariables[i]] = { hostPort: parseInt(hostPorts[i], 10), type: portTypes[i], portCount: portCounts[i] };
result.portBindings[environmentVariables[i]] = { hostPort: parseInt(hostPorts[i], 10), type: portTypes[i], portCount: parseInt(portCounts[i], 10) };
}
assert(result.accessRestrictionJson === null || typeof result.accessRestrictionJson === 'string');