From ad9afcdcea65718c14d5b776861648bfa94a3cfc Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 1 Aug 2024 12:13:55 +0200 Subject: [PATCH] controllers/nodes: add missing records for return objects On teuthology side at least for vms the lock/unlock mechanism still needs some records in return object like machine_type and is_vm. Fixes: fb1c596bd68a559bb504a80dce39966cc6578c45 Signed-off-by: Kyr Shatskyy --- paddles/controllers/nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddles/controllers/nodes.py b/paddles/controllers/nodes.py index b1986e8..3b4e82a 100644 --- a/paddles/controllers/nodes.py +++ b/paddles/controllers/nodes.py @@ -314,6 +314,8 @@ def _lock(node_obj, node_dict, verb): name=node_obj.name, locked=node_obj.locked, locked_by=node_obj.locked_by, + machine_type=node_obj.machine_type, + is_vm=node_obj.is_vm, ) @expose('json')