canonical / canonical/python-libmaas
Attributes contain exception
- 主要言語
- Python
- スター
- 65
- フォーク
- 71
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Python 3.10 と MAAS 3.5.2 を使用して、client.machines.list()[0].owner.email から開始し、関連するオブジェクトの読み込み動作を確認しながら報告を再現します。設定されているにもかかわらず User オブジェクトの email 属性が利用できない理由を追跡します。owner.email とその他の影響を受ける属性が ObjectNotLoaded 例外なしで読み込まれれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 32/100