Resource object attribute inconsistencies via proxy interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Fix Released
|
Undecided
|
Richard Theis |
Bug Description
While investigating https:/
for network in self.conn.
network = self.conn.
network = self.conn.
network = self.conn.
network = self.conn.
network = self.conn.
Looking at both resource._attrs and dir(resource) for the network resource, the following inconsistencies were noted:
1) create_network(): resource._attrs only contains the values provided via attrs parameter (i.e. name) and dir(resource) does not contain attributes for port_security_
2) networks(): resource._attrs and dir(resource) are complete
3) get_network(): dir(resource) does not contain attributes for port_security_
4) find_network(): Same as networks().
5) update_network(id): Same as create_network().
6) update_
Some of the resource methods appear to be missing code to update attrs based on the response data.
Update from related bug https:/
I'm not sure why resource create only updates the id attribute
https:/
Why not just grab whatever attributes are available? Might be some created_at etc type attributes to add.
Changed in python-openstacksdk: | |
assignee: | nobody → Richard Theis (rtheis) |
description: | updated |
See-also: https:/ /bugs.launchpad .net/python- openstacksdk/ +bug/1474478 (currently targeted to 1.1)