From f02fbd3045f31a4dd11bbaa90526489a1f1bd57e Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 14 May 2010 18:26:30 +0200 Subject: [PATCH] Return disk_template from LUQueryInstanceData Inter-cluster instance moves need the disk template. As they run LUQueryInstanceData to get an instance's details, the disk template must be returned. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 875398382..9b76897e3 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -8078,6 +8078,7 @@ class LUQueryInstanceData(NoHooksLU): "os": instance.os, # this happens to be the same format used for hooks "nics": _NICListToTuple(self, instance.nics), + "disk_template": instance.disk_template, "disks": disks, "hypervisor": instance.hypervisor, "network_port": instance.network_port, -- GitLab