Skip to content

fix: make SOAR cleanup idempotent - #258

Merged
dandye merged 1 commit into
google:mainfrom
Haihan-Jiang:guard-soar-cleanup-without-client
Aug 29, 2026
Merged

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

Conversation

@Haihan-Jiang

Copy link
Copy Markdown
Contributor

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
Contributor Author

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

@dandye dandye self-assigned this Aug 29, 2026
@dandye
dandye merged commit 39558e0 into google:main Aug 29, 2026
5 checks passed
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.

2 participants