From 37d19eb2ba23b33fe072d19c803d69e92c213feb Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 6 Aug 2007 11:26:04 +0000 Subject: [PATCH] =?UTF-8?q?Don't=20bail=20out=20if=20node=20isn't=20there?= =?UTF-8?q?=20on=20=E2=80=9Cgnt-node=20volumes=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: iustinp --- lib/cmdlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 8f5216f5e..2400bc5bc 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -1209,6 +1209,9 @@ class LUQueryNodeVolumes(NoHooksLU): output = [] for node in nodenames: + if node not in volumes or not volumes[node]: + continue + node_vols = volumes[node][:] node_vols.sort(key=lambda vol: vol['dev']) -- GitLab