saharclient should have a find_single API method
Bug #1414953 reported by
Pavlo Shchelokovskyy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client library for Sahara |
Fix Released
|
Medium
|
Pavlo Shchelokovskyy |
Bug Description
For better pythonic API, managers of saharaclient should have a "find_single" method, returning single found object or raising appropriate errors if no match or more than one match was found.
Changed in python-saharaclient: | |
status: | Fix Committed → Fix Released |
milestone: | none → 0.7.7 |
importance: | Undecided → Medium |
assignee: | nobody → Pavlo Shchelokovskyy (pshchelo) |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/150347 /git.openstack. org/cgit/ openstack/ python- saharaclient/ commit/ ?id=0e56c7170c4 bd5542b1b63abc5 66fcacc983b227
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0e56c7170c4bd55 42b1b63abc566fc acc983b227
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Tue Jan 27 12:31:36 2015 +0200
Add find_unique base manager method
Allows to request a single matched item from list of resources,
raising NotFound if no match was found or Conflict if more than one
match was found.
Change-Id: Ib8b516d96de2b9 5ae20eb4545db12 c0b82651941
Closes-Bug: #1414953