Fix parameter passed to IronicNodeNotFound exception
IronicNodeNotFound expects uuid parameter for the error message, not name. Change-Id: I9fefa98fa9fe6f6491e5f621190cac7d376db6c9
This commit is contained in:
@@ -631,7 +631,7 @@ class BaremetalModelRoot(nx.DiGraph, base.Model):
|
|||||||
super(BaremetalModelRoot, self).remove_node(node.uuid)
|
super(BaremetalModelRoot, self).remove_node(node.uuid)
|
||||||
except nx.NetworkXError as exc:
|
except nx.NetworkXError as exc:
|
||||||
LOG.exception(exc)
|
LOG.exception(exc)
|
||||||
raise exception.IronicNodeNotFound(name=node.uuid)
|
raise exception.IronicNodeNotFound(uuid=node.uuid)
|
||||||
|
|
||||||
@lockutils.synchronized("baremetal_model")
|
@lockutils.synchronized("baremetal_model")
|
||||||
def get_all_ironic_nodes(self):
|
def get_all_ironic_nodes(self):
|
||||||
@@ -643,7 +643,7 @@ class BaremetalModelRoot(nx.DiGraph, base.Model):
|
|||||||
try:
|
try:
|
||||||
return self._get_by_uuid(uuid)
|
return self._get_by_uuid(uuid)
|
||||||
except exception.BaremetalResourceNotFound:
|
except exception.BaremetalResourceNotFound:
|
||||||
raise exception.IronicNodeNotFound(name=uuid)
|
raise exception.IronicNodeNotFound(uuid=uuid)
|
||||||
|
|
||||||
def _get_by_uuid(self, uuid):
|
def _get_by_uuid(self, uuid):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user