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