From 1ce4bbe3f46792228d9a5d1937e75fa7b3fcd35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Thu, 25 Sep 2008 09:40:13 +0000 Subject: [PATCH] Fix iallocator name port forward of patch from revision 1690 with following message: Patch on revision 1686 used the wrong field: ial.name, which is the instance name and not the iallocator name. self.op.iallocator is the right field. Sorry for this inconvenience. Reviewed-by: imsnah --- lib/cmdlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index de74867f8..378aab5cd 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3257,7 +3257,8 @@ class LUCreateInstance(LogicalUnit): if len(ial.nodes) != ial.required_nodes: raise errors.OpPrereqError("iallocator '%s' returned invalid number" " of nodes (%s), required %s" % - (ial.name, len(ial.nodes), ial.required_nodes)) + (self.op.iallocator, len(ial.nodes), + ial.required_nodes)) self.op.pnode = ial.nodes[0] logger.ToStdout("Selected nodes for the instance: %s" % (", ".join(ial.nodes),)) -- GitLab