Skip to content

Commit edb137b

Browse files
committed
fix
1 parent a29350c commit edb137b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deployment-generator/src/gen_compose.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ function injectNetworkConfig(compose_object) {
132132
let start_ip_service = 51;
133133
Object.entries(compose_object["services"]).forEach((entry) => {
134134
const [key, value] = entry;
135+
let component_ip;
135136
if (key.startsWith("subnet")){
136-
const component_ip = ip_string_base + parseInt(start_ip_subnet);
137+
component_ip = ip_string_base + parseInt(start_ip_subnet);
137138
start_ip_subnet += 1;
138139
} else {
139-
const component_ip = ip_string_base + parseInt(start_ip_service);
140+
component_ip = ip_string_base + parseInt(start_ip_service);
140141
start_ip_service += 1;
141142
}
142143
if (!net.isIP(component_ip)) {

0 commit comments

Comments
 (0)