Allows writing to config objects but the data is not consistent internally
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Triaged
|
Low
|
Unassigned |
Bug Description
Use case:
self.
self.
self.
self.
self.
self.
The `__getattr__` call returns a GroupAttr object for `blaa`. When I write to `foo` that creates a member variable on `blaa`. Now, when `__getitem__` is called it does not check for an attribute on `blaa` but instead goes back to the `__cache`.
Either:
a) Writes are not permitted and `__setattr__` should be used to block them
b) Writes are ok and `__getitem__` should check `hasattr` before calling `_get`.
We came across this in a Keystone Middleware test.
Changed in oslo.config: | |
assignee: | Sean Perry (sean-perry-a) → Alexis Lee (alexisl) |
Fix proposed to branch: master /review. openstack. org/321889
Review: https:/