Fix KeyError when rename to a name is already in use
When a user attempts to rename a project via the PATCH
v3/projects/{project_id} API, and the new name is already in-use, rather
than return a nice error explaining that the name is in use, keystone
blows up and raises `KeyError: 'is_domain'` in
_generate_project_name_conflict_msg.
Change-Id: I56fcd8fe1258e2d1de3e541144649ef619f86a7b
Closes-bug: #1565108
(cherry picked from commit c1be6883f250e6bc0ad1b43eb516186f74a477f1)
Reviewed: https:/ /review. openstack. org/306003 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=3dfc0463758 51f7852513574d5 2a405004f6a853
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 3dfc046375851f7 852513574d52a40 5004f6a853
Author: liyingjun <email address hidden>
Date: Thu Mar 31 08:13:49 2016 +0800
Fix KeyError when rename to a name is already in use
When a user attempts to rename a project via the PATCH projects/ {project_ id} API, and the new name is already in-use, rather project_ name_conflict_ msg.
v3/
than return a nice error explaining that the name is in use, keystone
blows up and raises `KeyError: 'is_domain'` in
_generate_
Change-Id: I56fcd8fe1258e2 d1de3e541144649 ef619f86a7b c0ad1b43eb51618 6f74a477f1)
Closes-bug: #1565108
(cherry picked from commit c1be6883f250e6b