Replaces exceptions.Error with NovaException

Fixes bug 817107

Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a
This commit is contained in:
Alex Meade 2012-05-03 14:29:50 -04:00
parent 4d7d26988f
commit ead78d55f1
2 changed files with 2 additions and 2 deletions
nova/virt/baremetal

@ -39,4 +39,4 @@ def get_baremetal_nodes():
elif d == 'fake':
return fake.get_baremetal_nodes()
else:
raise exception.Error(_("Unknown baremetal driver %(d)s"))
raise exception.NovaException(_("Unknown baremetal driver %(d)s"))

@ -325,7 +325,7 @@ class BareMetalNodes(object):
return power_state.RUNNING
except Exception as ex:
self.deactivate_node(node_id)
raise exception.Error(_("Node is unknown error state."))
raise exception.NovaException(_("Node is unknown error state."))
def get_console_output(self, console_log, node_id):
"""