Name of the exception is corrected
Change-Id: I4621a2b66fb6cc66dc76ad8eb87d90063f969c69 Closes-Bug: #1612040
This commit is contained in:
parent
48b6795b83
commit
c7e4cae0d6
@ -73,7 +73,7 @@ class VimDuplicateUrlException(exceptions.TackerException):
|
||||
"duplicate VIM")
|
||||
|
||||
|
||||
class VimPorjectDomainNameMissingException(exceptions.TackerException):
|
||||
class VimProjectDomainNameMissingException(exceptions.TackerException):
|
||||
message = _("'project_domain_name' is missing")
|
||||
|
||||
|
||||
|
@ -90,7 +90,7 @@ class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver):
|
||||
auth_cred['project_name'] = vim_project.get('name')
|
||||
if not vim_project.get('project_domain_name'):
|
||||
LOG.error(_("'project_domain_name' is missing."))
|
||||
raise nfvo.VimPorjectDomainNameMissingException()
|
||||
raise nfvo.VimProjectDomainNameMissingException()
|
||||
auth_cred['project_domain_name'] = vim_project.get(
|
||||
'project_domain_name')
|
||||
if not auth_cred.get('user_domain_name'):
|
||||
|
@ -145,7 +145,7 @@ class TestOpenstack_Driver(base.TestCase):
|
||||
'auth_cred': auth_cred,
|
||||
'vim_project': {'id': sentinel.prj_id1,
|
||||
'name': sentinel.prj_name1}}
|
||||
self.assertRaises(nfvo.VimPorjectDomainNameMissingException,
|
||||
self.assertRaises(nfvo.VimProjectDomainNameMissingException,
|
||||
self.openstack_driver.authenticate_vim,
|
||||
vim_obj)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user