From fab1e3a4a1d7268ba6f72a8bbeccfb23fa71a5ed Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sun, 14 Dec 2008 12:01:41 +0000
Subject: [PATCH] cleanup: fix 'variable unused' warning

In the iteration we don't care about the node names, so we change the
for loop to be over the values (and not itervalues).

Reviewed-by: amishchenko
---
 lib/rpc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rpc.py b/lib/rpc.py
index d120f1554..0f5875277 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -735,7 +735,7 @@ class RpcRunner(object):
     """
     result = self._MultiNodeCall(node_list, "os_diagnose", [])
 
-    for node_name, node_result in result.iteritems():
+    for node_result in result.values():
       if not node_result.failed and node_result.data:
         node_result.data = [objects.OS.FromDict(oss)
                             for oss in node_result.data]
-- 
GitLab