From a3046e007f53b9b31528a2b35b2f000ae0441750 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 23 Jan 2012 16:53:44 -0500 Subject: Add nova.exception.InvalidRPCConnectionReuse. nova.rpc.common.ConnectionContext makes use of an exception that was not defined. This patch adds it. Change-Id: Ibfbd2fc56dbcc36c8f271d5bc8c6e1db04ce8c93 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nova/exception.py b/nova/exception.py index a60c82f71..42ec908d7 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -247,6 +247,10 @@ class InvalidCidr(Invalid): message = _("Invalid cidr %(cidr)s.") +class InvalidRPCConnectionReuse(Invalid): + message = _("Invalid reuse of an RPC connection.") + + # Cannot be templated as the error syntax varies. # msg needs to be constructed when raised. class InvalidParameterValue(Invalid): -- cgit