saharclient should have a find_single API method

Bug #1414953 reported by Pavlo Shchelokovskyy
6
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/150347
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=0e56c7170c4bd5542b1b63abc566fcacc983b227
Submitter: Jenkins
Branch: master

commit 0e56c7170c4bd5542b1b63abc566fcacc983b227
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: Ib8b516d96de2b95ae20eb4545db12c0b82651941
    Closes-Bug: #1414953

Changed in python-saharaclient:
status: New → Fix Committed
Changed in python-saharaclient:
status: Fix Committed → Fix Released
milestone: none → 0.7.7
importance: Undecided → Medium
assignee: nobody → Pavlo Shchelokovskyy (pshchelo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-saharaclient 0.8.0

This issue was fixed in the openstack/python-saharaclient 0.8.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.