• Iustin Pop's avatar
    Fix an error message in instance add · 3e91897b
    Iustin Pop authored
    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
    3e91897b
cmdlib.py 168 KB