From 3e91897b94b21eb8ac709a71d8a1c05efa280551 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sun, 15 Jun 2008 05:22:12 +0000 Subject: [PATCH] Fix an error message in instance add There is a mistake in the error message generated when we can't reach a node for checking for available disk space. Without it, the error message is: Failure: prerequisites not met for this operation: Cannot get current information from node '{u'gnte2.lab.k1024.org': {'cpu_total': 1, 'memory_free': 480, 'vg_size': 131068, 'memory_total': 504, 'bootid': '2176dd3b-2f96-42f0-8b6e-2873ecaf5f9c', 'memory_dom0': 134, 'vg_free': 130172}, u'gnte1.lab.k1024.org': False}' instead of the expected: Failure: prerequisites not met for this operation: Cannot get current information from node 'gnte2.lab.k1024.org' Reviewed-by: imsnah --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index dc71d4fbd..b550e01b2 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3210,7 +3210,7 @@ class LUCreateInstance(LogicalUnit): info = nodeinfo.get(node, None) if not info: raise errors.OpPrereqError("Cannot get current information" - " from node '%s'" % nodeinfo) + " from node '%s'" % node) vg_free = info.get('vg_free', None) if not isinstance(vg_free, int): raise errors.OpPrereqError("Can't compute free disk space on" -- GitLab