From 84e3f66f9274c214bf0b292051f1f7069d34037f Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 2 Oct 2009 17:30:00 +0100 Subject: [PATCH] Fix rpc.call_os_get to actually return the OS Since nobody ever read the actual OS object, this bug was introduced in the rpc conversion. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Olivier Tharan <olive@google.com> --- lib/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpc.py b/lib/rpc.py index 8101538ef..ea132a9b3 100644 --- a/lib/rpc.py +++ b/lib/rpc.py @@ -910,8 +910,8 @@ class RpcRunner(object): """ result = self._SingleNodeCall(node, "os_get", [name]) - if not result.fail_msg and isinstance(result.data, dict): - result.data = objects.OS.FromDict(result.data) + if not result.fail_msg and isinstance(result.payload, dict): + result.payload = objects.OS.FromDict(result.payload) return result def call_hooks_runner(self, node_list, hpath, phase, env): -- GitLab