Skip to content

The tool wrapper unconditionally passes filter_type=filter_type into … - #9

Open
ssteenhoek-dev wants to merge 1 commit into
vinit-devops:mainfrom
ssteenhoek-dev:patch-1
Open

The tool wrapper unconditionally passes filter_type=filter_type into …#9
ssteenhoek-dev wants to merge 1 commit into
vinit-devops:mainfrom
ssteenhoek-dev:patch-1

Conversation

@ssteenhoek-dev

Copy link
Copy Markdown

…the API client

The tool wrapper unconditionally passes filter_type=filter_type into the API client — even when nothing was supplied and it's None — but the client method was never updated to accept that parameter at all. So this fails on every single call, with any arguments, until someone patches one side or the other (either drop the filter_type= pass-through in collector_tools.py, or add filter_type support to SumoLogicAPIClient.list_collectors()).

Bottom line: list_collectors is not usable as-is — this is a genuine upstream defect, separate from everything we fixed today. Everything else (list_monitors, and by extension the connection itself) is confirmed working end to end. Worth filing alongside the pywin32 note for whoever owns this build, with the exact line numbers above so it's a two-minute fix rather than a re-investigation.

…the API client

The tool wrapper unconditionally passes filter_type=filter_type into the API client — even when nothing was supplied and it's None — but the client method was never updated to accept that parameter at all. So this fails on every single call, with any arguments, until someone patches one side or the other (either drop the filter_type= pass-through in collector_tools.py, or add filter_type support to SumoLogicAPIClient.list_collectors()).

Bottom line: list_collectors is not usable as-is — this is a genuine upstream defect, separate from everything we fixed today. Everything else (list_monitors, and by extension the connection itself) is confirmed working end to end. Worth filing alongside the pywin32 note for whoever owns this build, with the exact line numbers above so it's a two-minute fix rather than a re-investigation.

@ssteenhoek-dev ssteenhoek-dev left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tool wrapper unconditionally passes filter_type=filter_type into the API client

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