Fixes NotFound exceptions to show the proper instance id in the ec2 api.

This commit is contained in:
Vishvananda Ishaya
2011-09-01 14:02:02 +00:00
committed by Tarmac
5 changed files with 72 additions and 12 deletions

View File

@@ -146,6 +146,7 @@ class NovaException(Exception):
message = _("An unknown exception occurred.")
def __init__(self, **kwargs):
self.kwargs = kwargs
try:
self._error_string = self.message % kwargs