Skip to content

Commit ea2402a

Browse files
committed
Only add port forwarding for instances
1 parent 29d92d6 commit ea2402a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aleph/vm/pool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ async def create_a_vm(
176176

177177
execution.create(vm_id=vm_id, tap_interface=tap_interface)
178178
await execution.start()
179-
await execution.fetch_port_redirect_config_and_setup()
179+
if execution.is_instance:
180+
await execution.fetch_port_redirect_config_and_setup()
180181

181182
# clear the user reservations
182183
for resource in resources:

0 commit comments

Comments
 (0)