Replace a non-existing exception
Closes-Bug: #1242662 Change-Id: Ie44023c0fd9ba1373ec6e62d9245884b9f719b7e
This commit is contained in:
parent
5392ec0f18
commit
7d44629c2e
@ -567,8 +567,7 @@ class ExtensionManager(object):
|
||||
LOG.info(_('Loaded extension: %s'), alias)
|
||||
|
||||
if alias in self.extensions:
|
||||
raise exceptions.Error(_("Found duplicate extension: %s") %
|
||||
alias)
|
||||
raise exceptions.DuplicatedExtension(alias=alias)
|
||||
self.extensions[alias] = ext
|
||||
|
||||
|
||||
|
@ -301,3 +301,7 @@ class NetworkVlanRangeError(NeutronException):
|
||||
|
||||
class NetworkVxlanPortRangeError(NeutronException):
|
||||
message = _("Invalid network VXLAN port range: '%(vxlan_range)s'")
|
||||
|
||||
|
||||
class DuplicatedExtension(NeutronException):
|
||||
message = _("Found duplicate extension: %(alias)s")
|
||||
|
Loading…
Reference in New Issue
Block a user