Revert "Raise VimFaultException for unknown faults"

This reverts commit 1668fef9ca

This is a backwards incompatible change, as we see with the
nova driver code that is expecting a VMwareDriverException
but is now getting back a VimFaultException because the unit
tests in nova were passing an unknown fault class name.

Change-Id: I0f8042c6e47f6eb9802e770ffb7d09bdbe57013b
Closes-Bug: #1459021
This commit is contained in:
Matt Riedemann
2015-05-26 21:32:40 +00:00
parent 1668fef9ca
commit 8ec7f0fe04
5 changed files with 11 additions and 28 deletions

View File

@@ -254,6 +254,7 @@ def get_fault_class(name):
fault_class = _fault_classes_registry.get(name)
if not fault_class:
LOG.debug('Fault %s not matched.', name)
fault_class = VMwareDriverException
return fault_class