From 768f0a809df6dc7b780461597e92e5f7451ca691 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 28 Apr 2008 09:47:06 +0000 Subject: [PATCH] Fix iallocator instance info The commit "IAllocator: some more info exported" broke the instance list generation due to a wrong index variable. This patch fixes that. Reviewed-by: ultrotter --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 18bc22cc7..72e11b5f5 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4914,7 +4914,7 @@ class IAllocator(object): "disks": [{"size": dsk.size, "mode": "w"} for dsk in iinfo.disks], "disk_template": iinfo.disk_template, } - instance_data[iname] = pir + instance_data[iinfo.name] = pir data["instances"] = instance_data -- GitLab