Merge "Raise unexpected exceptions during destroy()"

This commit is contained in:
Jenkins 2014-03-27 23:36:06 +00:00 committed by Gerrit Code Review
commit 27375855e8
1 changed files with 3 additions and 1 deletions

View File

@ -500,8 +500,10 @@ class IronicDriver(virt_driver.ComputeDriver):
# This should be fixed in Ironic.
# TODO(deva): This exception should be added to python-ironicclient
# and matched directly, rather than via __name__.
if e.__name__ == 'InstanceDeployFailure':
if getattr(e, '__name__', None) == 'InstanceDeployFailure':
pass
else:
raise
def _wait_for_provision_state():
try: