Pools and Flavors are not populated if the resource exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client library for Zaqar |
Fix Released
|
Low
|
Doraly Navarro |
Bug Description
Flavor/Pool instances can be created by just passing the client and the name. They both check at construction time whether the resource exist in the server or not. If the resource doesn't exist, it'll attempt to create one, therefore it'd be necessary to pass all the required parameters. However, if the resource does exist, the optional parameters are not required at all.
The problem here is that the user would end up accessing non-populated attributes for both resources. See[0]
>> p = pool.Pool(client, 'my-pool') # my-pool exists in the server
>> p.weight is None # This shouldn't be True, it should contain the actual weight.
True
[0] https:/
Changed in python-zaqarclient: | |
assignee: | nobody → Doraly Navarro (doralynavarro) |
importance: | Undecided → Low |
Changed in python-zaqarclient: | |
status: | New → Triaged |
Changed in python-zaqarclient: | |
milestone: | none → 0.2.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/137398
Review: https:/