cmdlib: Fix typo in LUQueryClusterInfo
authorMichael Hanselmann <hansmi@google.com>
Mon, 13 Jul 2009 13:55:56 +0000 (15:55 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 13 Jul 2009 14:01:11 +0000 (16:01 +0200)
This was broken by my pylint fixes patch.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py

index 7885ef1..ff0aaea 100644 (file)
@@ -2509,7 +2509,7 @@ class LUQueryClusterInfo(NoHooksLU):
       "master": cluster.master_node,
       "default_hypervisor": cluster.default_hypervisor,
       "enabled_hypervisors": cluster.enabled_hypervisors,
-      "hvparams": dict([(hypervisor_name, cluster.hvparams[hypervisor])
+      "hvparams": dict([(hypervisor_name, cluster.hvparams[hypervisor_name])
                         for hypervisor_name in cluster.enabled_hypervisors]),
       "beparams": cluster.beparams,
       "candidate_pool_size": cluster.candidate_pool_size,