From 3008f56cbb58ef3d70db6006d89eb279b2deb165 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Wed, 10 Oct 2012 13:45:07 +0200 Subject: [PATCH] Fix pylint breakage due to unused var in gnt_cluster The usage of that variable was removed in 45a36f36, but accidentally the enumerate() was left in. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/client/gnt_cluster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 42f671a8d..cf9536ef0 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1431,8 +1431,7 @@ def Epo(opts, args): all_nodes = map(compat.fst, result) node_list = [] inst_map = {} - for (idx, (node, master, pinsts, sinsts, powered, - offline)) in enumerate(result): + for (node, master, pinsts, sinsts, powered, offline) in result: if not offline: for inst in (pinsts + sinsts): if inst in inst_map: -- GitLab