Replaces exceptions.Error with NovaException
Fixes bug 817107 Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a
This commit is contained in:
parent
4d7d26988f
commit
ead78d55f1
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user