diff options
| author | sunyajing <yajing.sun@easystack.cn> | 2016-06-24 12:40:29 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-07-22 19:40:50 +0800 |
| commit | c45b1d7b230e900d0416a4953607e5d4e1dc9cfd (patch) | |
| tree | 8fd33e08f4da491210710bc53a876673b08fa12f /releasenotes | |
| parent | 60639d76a742852e18f9e2889c480be95596c268 (diff) | |
| download | python-openstackclient-c45b1d7b230e900d0416a4953607e5d4e1dc9cfd.tar.gz | |
Fix error for find_service() in identity
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 <huanxuan.ao@easystack.cn>
Closes-Bug:#1597296
Diffstat (limited to 'releasenotes')
| -rw-r--r-- | releasenotes/notes/bug-1597296-9735f33eacf5552e.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1597296-9735f33eacf5552e.yaml b/releasenotes/notes/bug-1597296-9735f33eacf5552e.yaml new file mode 100644 index 00000000..677f8d47 --- /dev/null +++ b/releasenotes/notes/bug-1597296-9735f33eacf5552e.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - Fixed service name lookup in Identity commands to properly handle + multiple matches. + [Bug `1597296 <https://bugs.launchpad.net/python-openstackclient/+bug/1597296>`_] |
