Skip to content

Commit 264e92e

Browse files
lablup-octodogjopemachineclaude
authored
fix(BA-5924): correct inverted enabled check in CreateNetwork legacy mutation (#11448) (#11449)
Co-authored-by: Gyubong Lee <gbl@lablup.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 79349a1 commit 264e92e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changes/11448.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the legacy `CreateNetwork` GraphQL mutation so it no longer rejects requests when inter-container networking is enabled (the `enabled` flag was being checked with an inverted condition).

src/ai/backend/manager/models/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def mutate(
320320
) -> "CreateNetwork":
321321
graph_ctx: GraphQueryContext = info.context
322322
network_config = graph_ctx.config_provider.config.network.inter_container
323-
if network_config.enabled:
323+
if not network_config.enabled:
324324
return CreateNetwork(
325325
ok=False, msg="Inter-container networking disabled on this cluster", network=None
326326
)

0 commit comments

Comments
 (0)