- Introduce `classify_owner` class method for owner classification. - Implement private method for input validation. - Add error handling to raise the necessary exceptions. - Add deprecation warning to the `user_or_usergroup` method.
Related issues
Bug #37015: Updating setting host_owner fails with "Value Host owner is invalid"
Fixes #37015 - Refactor OwnerClassifier
- Introduce `classify_owner` class method for owner classification.
- Implement private method for input validation.
- Add error handling to raise the necessary exceptions.
- Add deprecation warning to the `user_or_usergroup` method.