Skip to content

Commit 7cec679

Browse files
authored
Merge pull request #31 from Serverless-Devs/fix-sandbox-network-mode
refactor(sandbox): remove network mode validation for CODE_INTERPRETE…
2 parents c0e7489 + 9685f00 commit 7cec679

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

agentrun/sandbox/model.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,6 @@ def validate_template_constraints(self):
337337
f"the current disk size is {self.disk_size}"
338338
)
339339

340-
if (
341-
self.template_type == TemplateType.CODE_INTERPRETER
342-
or self.template_type == TemplateType.AIO
343-
):
344-
if (
345-
self.network_configuration
346-
and self.network_configuration.network_mode
347-
== TemplateNetworkMode.PRIVATE
348-
):
349-
raise ValueError(
350-
"when template_type is CODE_INTERPRETER,"
351-
"network_mode cannot be PRIVATE"
352-
)
353340
return self
354341

355342

0 commit comments

Comments
 (0)