uuidsentinel does not follow __getattr__ protocol
Bug #1885281 reported by
Balazs Gibizer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.utils |
Fix Released
|
Undecided
|
Balazs Gibizer |
Bug Description
uuidsentinel raises a ValueError if called __getattr__ called with an attribute starting with '_' This breaks the getattr protocol by making getattr() builtin to raise instead of return the value of the default args. This breaks nova unit test under mock 4.0.x [1].
The proper exception would be an AttributeError as stated by [2]
[1] https:/
[2] https:/
Changed in oslo.utils: | |
assignee: | nobody → Balazs Gibizer (balazs-gibizer) |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/738207
Review: https:/