Skip to content
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

Fixes attribute errors in the Custom IOA module #218

Merged

Conversation

hur
Copy link
Collaborator

@hur hur commented Oct 28, 2024

Fixes attribute errors in the Custom IOA module

  • Enhancement
  • Major feature update
  • Bug fixes
  • Breaking change
  • Updated unit tests
  • Documentation

Added features and functionality

Fixed a bug causing AttributeErrors when accessing cloud fields of IoaRuleGroup and CustomIoaRule objects.

Issues resolved

Notes

This does not attempt to separate local instances of the objects from clouded instances.
While this prevents a call to e.g. rule.deleted from raising an exception, the property is not meaningful on local (to be created in the cloud) objects. I think it's worth considering whether keeping the current behaviour of throwing an error in these cases would be preferable. If so, __repr__ can be fixed by changing its functionality in the case of local objects.

@hur hur added the bug 🐛 Something isn't working label Oct 28, 2024
@hur hur self-assigned this Oct 28, 2024
Copy link
Member

@ChristopherHammond13 ChristopherHammond13 left a comment

Choose a reason for hiding this comment

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

This is a great solution to this issue. Thank you, @hur!

@ChristopherHammond13 ChristopherHammond13 merged commit bb78c44 into CrowdStrike:main Oct 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ BUG ] IoaRuleGroup.__repr__() raises AttributeError
2 participants