Fix an error that prevents message from getting substituted.

The problem: self.__dict__ contains message.  This overrides the
default of None for the NovaException constructor.  Since a
message is provided, it's used directly instead of trying to
substitute the keyword arguments.  The solution is to limit the
keyword arguments we pass to the NovaException constructor, so
they don't contain message.  Fixes bug 917768.

Change-Id: I5986fa7b552c84ba7f902e78b32498ab294beb7b
This commit is contained in:
Kevin L. Mitchell
2012-01-17 12:59:42 -06:00
parent 935ea98e22
commit 9e9927da82

View File

@@ -45,7 +45,9 @@ class RemoteError(exception.NovaException):
self.exc_type = exc_type
self.value = value
self.traceback = traceback
super(RemoteError, self).__init__(**self.__dict__)
super(RemoteError, self).__init__(exc_type=exc_type,
value=value,
traceback=traceback)
class Connection(object):