Fix unclear error when replacing a nic's ip
authorGuido Trotter <ultrotter@google.com>
Fri, 26 Apr 2013 12:37:19 +0000 (14:37 +0200)
committerGuido Trotter <ultrotter@google.com>
Mon, 29 Apr 2013 07:56:29 +0000 (09:56 +0200)
commitdecc7ec931f89413d68dc05e561df3b0b44b8e60
treeb773c39ce9874f02d176efd05f87769dd7100789
parentf38270c6da11811d432db51061a32d3b85823372
Fix unclear error when replacing a nic's ip

The current error message ends up saying something like
'192.168.5.5' != 'network1', which is sort of non-intuitive (yes, of
course they are different). Fix this by explaining better what the
erroneous condition actually is.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/cmdlib.py