Skip to content

fix: make SOAR cleanup idempotent#258

Open
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:guard-soar-cleanup-without-client
Open

fix: make SOAR cleanup idempotent#258
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:guard-soar-cleanup-without-client

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

bindings.cleanup() currently assumes http_client was initialized. If startup fails before bind() completes, cleanup can raise a secondary AttributeError while handling the original error.

This makes cleanup return early when no client has been created yet.

Tests:

  • python3 -m py_compile server/secops-soar/secops_soar_mcp/bindings.py
  • git diff --check

@Haihan-Jiang Haihan-Jiang requested a review from a team May 26, 2026 08:28
@Haihan-Jiang
Copy link
Copy Markdown
Author

This is ready for review. The SOAR cleanup path is now idempotent, and the visible checks are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant