projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f4497
)
Fix iallocator instance info
author
Iustin Pop
<iustin@google.com>
Mon, 28 Apr 2008 09:47:06 +0000
(09:47 +0000)
committer
Iustin Pop
<iustin@google.com>
Mon, 28 Apr 2008 09:47:06 +0000
(09:47 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/cmdlib.py
b/lib/cmdlib.py
index
18bc22c
..
72e11b5
100644
(file)
--- 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