canonical / canonical/python-libmaas
Attributes contain exception
- Dominant language
- Python
- Stars
- 65
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
When requesting machines.list() I am getting exceptions as attribute values.
For example `client.machines.list()[0].owner.email` is returned as `maas.client.errors.ObjectNotLoaded: cannot access attribute 'email' of object 'User'`
Not that it matters much, but the owner user has in fact an email value set.
There are many other attributes with the same behaviour.
I am using python 3.10 and latest maas stable (3.5.2)
Any idea what this could be related to?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report with Python 3.10 and MAAS 3.5.2, starting at client.machines.list()[0].owner.email and checking the related object-loading behavior. Trace why the User object's email attribute is unavailable despite being set; done means owner.email and the other affected attributes load without ObjectNotLoaded exceptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100