Skip to content

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

@andrew-deyoung
Copy link
Author

Hey, just wondering when this PR might be reviewed. Thanks!

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