summaryrefslogtreecommitdiff
path: root/ironic/nova
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/nova')
-rw-r--r--ironic/nova/virt/ironic/driver.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ironic/nova/virt/ironic/driver.py b/ironic/nova/virt/ironic/driver.py
index 14f0f8234..a66cfed40 100644
--- a/ironic/nova/virt/ironic/driver.py
+++ b/ironic/nova/virt/ironic/driver.py
@@ -563,9 +563,7 @@ class IronicDriver(virt_driver.ComputeDriver):
# TODO(deva): This exception should be added to
# python-ironicclient and matched directly,
# rather than via __name__.
- if getattr(e, '__name__', None) == 'InstanceDeployFailure':
- pass
- else:
+ if getattr(e, '__name__', None) != 'InstanceDeployFailure':
raise
# using a dict because this is modified in the local method