Commit 4dce1a83 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

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: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a02b89cf
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment