Improve project name conflict message

As suggested in patch: https://review.openstack.org/#/c/301418/
change project name conflict message from 'it is not permitted to have
two projects within a domain with the same name' to 'it is not permitted
to have two projects with the same name in the same domain'.

Change-Id: I004a2399fdd54718ecb0679aa4269f3736761595
This commit is contained in:
liyingjun
2016-04-08 22:46:34 +08:00
parent dabf76f2cf
commit ff9e257b6b

View File

@@ -203,7 +203,7 @@ class Manager(manager.Manager):
) % project['name']
else:
return _('it is not permitted to have two projects '
'within a domain with the same name : %s'
'with the same name in the same domain : %s'
) % project['name']
def create_project(self, project_id, project, initiator=None):