From 2e1cefbf48bea5ecbf8eb13a895856650c8c0ff7 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Fri, 8 Mar 2013 09:51:41 +0000 Subject: [PATCH] Fix exception typo Fixes bug 1152525 Change-Id: I24b5340b791a7408fbd2c7a371971445a24333b7 --- quantum/api/extensions.py | 2 +- quantum/common/exceptions.py | 2 +- quantum/extensions/portsecurity.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/quantum/api/extensions.py b/quantum/api/extensions.py index 1679ebfcea..f1ae278541 100644 --- a/quantum/api/extensions.py +++ b/quantum/api/extensions.py @@ -484,7 +484,7 @@ class ExtensionManager(object): if hasattr(extension, 'check_env'): try: extension.check_env() - except exceptions.InvalidExtenstionEnv as ex: + except exceptions.InvalidExtensionEnv as ex: LOG.warn(_("Exception loading extension: %s"), unicode(ex)) return False return True diff --git a/quantum/common/exceptions.py b/quantum/common/exceptions.py index a2997bca69..71d1d9da9d 100644 --- a/quantum/common/exceptions.py +++ b/quantum/common/exceptions.py @@ -242,7 +242,7 @@ class InvalidSharedSetting(Conflict): "%(network)s. Multiple tenants are using it") -class InvalidExtenstionEnv(BadRequest): +class InvalidExtensionEnv(BadRequest): message = _("Invalid extension environment: %(reason)s") diff --git a/quantum/extensions/portsecurity.py b/quantum/extensions/portsecurity.py index 90e7ebfbd6..85b83ccbdf 100644 --- a/quantum/extensions/portsecurity.py +++ b/quantum/extensions/portsecurity.py @@ -31,7 +31,7 @@ class PortSecurityAndIPRequiredForSecurityGroups(qexception.InvalidInput): " address in order to use security groups.") -class PortSecurityBindingNotFound(qexception.InvalidExtenstionEnv): +class PortSecurityBindingNotFound(qexception.InvalidExtensionEnv): message = _("Port does not have port security binding.") PORTSECURITY = 'port_security_enabled'