From 4dce1a83e287961a0d84ee5d27b283a0f5748c20 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 24 Aug 2009 13:11:35 +0200 Subject: [PATCH] cmdlib: Fix broken QueryInstanceData for plain instances Fixes this bug: Failure: command execution error: Can't compute disk status for instX.domain.tld: No error information Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 333de53d6..089cd36db 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -6649,7 +6649,7 @@ class LUQueryInstanceData(NoHooksLU): """Returns the status of a block device """ - if self.op.static: + if self.op.static or not node: return None self.cfg.SetDiskID(dev, node) -- GitLab