Skip to content

Fixed ignore_event_type logic. #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrew-deyoung
Copy link

@andrew-deyoung andrew-deyoung commented Jul 9, 2025

ignore_event_type was omitting the Type field from the returned dictionary in some cases where it was required. Notably, if ignore_event_type was false, Type would only be included if the Type started with "Event". This resulted in errors with the Control-M REST API.

I did my best to guess what the logic should be based on the previous logic, but I'll update the PR if this is incorrect.

Additionally, I tidied the rest of the function somewhat. Notably:

  • Type is now skipped in the main loop since it is already handled on its own
  • Used the dictionary pop method instead of __delitem__
  • Fixed a typo in "attributes_valid"

@nathanw9722
Copy link
Collaborator

@andrew-deyoung welcome and thanks for contributing! @yehonatan-bauminger assigning to you for review.

@andrew-deyoung
Copy link
Author

This PR should also fix Issue #128

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.

3 participants