Commit fab1e3a4 authored by Iustin Pop's avatar Iustin Pop
Browse files

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
parent 22692e48
...@@ -735,7 +735,7 @@ class RpcRunner(object): ...@@ -735,7 +735,7 @@ class RpcRunner(object):
""" """
result = self._MultiNodeCall(node_list, "os_diagnose", []) 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: if not node_result.failed and node_result.data:
node_result.data = [objects.OS.FromDict(oss) node_result.data = [objects.OS.FromDict(oss)
for oss in node_result.data] for oss in node_result.data]
......
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