NvpPluginException mixes err_msg and err_desc

In a few places err_msg was passed to NvpPluginException though that
expected err_desc. This patch makes NvpPluginException take err_msg
instead and updates err_desc to err_msg when calling NvpPluginException

Fixes bug 1098351
Change-Id: I10eca5f2b98ce8faa81ad7c7687902b6f08752c1
This commit is contained in:
Aaron Rosen 2013-01-10 14:40:33 -08:00
parent 7de5d67c07
commit 3575190ca1
2 changed files with 2 additions and 2 deletions

View File

@ -819,7 +819,7 @@ class NvpPluginV2(db_base_plugin_v2.QuantumDbPluginV2):
"in NVP for port %s") % port_data['id']
LOG.exception(err_msg)
super(NvpPluginV2, self).delete_port(context, port["port"]["id"])
raise nvp_exc.NvpPluginException(err_desc=err_msg)
raise nvp_exc.NvpPluginException(err_msg=err_msg)
LOG.debug(_("create_port completed on NVP for tenant %(tenant_id)s: "
"(%(id)s)"), port_data)

View File

@ -21,7 +21,7 @@ from quantum.common import exceptions as q_exc
class NvpPluginException(q_exc.QuantumException):
message = _("An unexpected error occurred in the NVP Plugin:%(err_desc)s")
message = _("An unexpected error occurred in the NVP Plugin:%(err_msg)s")
class NvpInvalidConnection(NvpPluginException):