From 6d73dfdb40fb4becd3c4ba6c6b4971827e41fc7c Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 16 Jul 2024 19:28:22 +0200 Subject: [PATCH] parse port count as integer --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index 5dd33bbc4..85b395c1a 100644 --- a/src/apps.js +++ b/src/apps.js @@ -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');