summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ironic/db/sqlalchemy/api.py6
-rw-r--r--ironic/drivers/modules/xclarity/common.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/ironic/db/sqlalchemy/api.py b/ironic/db/sqlalchemy/api.py
index 6ca3f1504..23c29198c 100644
--- a/ironic/db/sqlalchemy/api.py
+++ b/ironic/db/sqlalchemy/api.py
@@ -449,7 +449,7 @@ class Connection(api.Connection):
host=node['reservation'])
return node
except NoResultFound:
- raise exception.NodeNotFound(node_id)
+ raise exception.NodeNotFound(node=node_id)
@oslo_db_api.retry_on_deadlock
def release_node(self, tag, node_id):
@@ -468,7 +468,7 @@ class Connection(api.Connection):
raise exception.NodeLocked(node=node.uuid,
host=node['reservation'])
except NoResultFound:
- raise exception.NodeNotFound(node_id)
+ raise exception.NodeNotFound(node=node_id)
@oslo_db_api.retry_on_deadlock
def create_node(self, values):
@@ -1090,7 +1090,7 @@ class Connection(api.Connection):
query = add_identity_filter(query, node_id)
count = query.update({'provision_updated_at': timeutils.utcnow()})
if count == 0:
- raise exception.NodeNotFound(node_id)
+ raise exception.NodeNotFound(node=node_id)
def _check_node_exists(self, node_id):
if not model_query(models.Node).filter_by(id=node_id).scalar():
diff --git a/ironic/drivers/modules/xclarity/common.py b/ironic/drivers/modules/xclarity/common.py
index d21619514..cd44d44d5 100644
--- a/ironic/drivers/modules/xclarity/common.py
+++ b/ironic/drivers/modules/xclarity/common.py
@@ -144,7 +144,7 @@ def get_server_hardware_id(node):
msg = (_("Error validating node driver info, "
"server uuid: %s missing xclarity_hardware_id") %
node.uuid)
- raise exception.MissingParameterValue(error=msg)
+ raise exception.MissingParameterValue(err=msg)
return xclarity_hardware_id