if there are more than one services be found with one
name, a NoUniqueMatch exception should be raised but
we can see a NotFound Exception raised instead. It is
because in "find_service()", we use "find_resource()"
first, if "find_resource()" return a exception, we just
think it is a NotFound Exception and continue to find
by type but ignore a NoUniqueMatch exception of
"find_resource()". This patch refactor the "find_service()"
method to solve this problem.
Change-Id: Id4619092c57f276ae0698c89df0d5503b7423a4e
Co-Authored-By: Huanxuan Ao <email address hidden>
Closes-Bug:#1597296
Reviewed: https:/ /review. openstack. org/333253 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=c45b1d7b230 e900d0416a49536 07e5d4e1dc9cfd
Committed: https:/
Submitter: Jenkins
Branch: master
commit c45b1d7b230e900 d0416a4953607e5 d4e1dc9cfd
Author: sunyajing <email address hidden>
Date: Fri Jun 24 12:40:29 2016 +0800
Fix error for find_service() in identity
if there are more than one services be found with one resource( )". This patch refactor the "find_service()"
name, a NoUniqueMatch exception should be raised but
we can see a NotFound Exception raised instead. It is
because in "find_service()", we use "find_resource()"
first, if "find_resource()" return a exception, we just
think it is a NotFound Exception and continue to find
by type but ignore a NoUniqueMatch exception of
"find_
method to solve this problem.
Change-Id: Id4619092c57f27 6ae0698c89df0d5 503b7423a4e Bug:#1597296
Co-Authored-By: Huanxuan Ao <email address hidden>
Closes-