Fix an error message in instance add
authorIustin Pop <iustin@google.com>
Sun, 15 Jun 2008 05:21:16 +0000 (05:21 +0000)
committerIustin Pop <iustin@google.com>
Sun, 15 Jun 2008 05:21:16 +0000 (05:21 +0000)
commitbe752c6755efeb3fc48adf625c80d1d2d017b43a
treeacdd32400b46d5393441539f965432cb1ef40034
parent16436b75d6264438f254ae567b5b7fa199976ec4
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