Fix network LUs use of error code in OpPrereqError
authorIustin Pop <iustin@google.com>
Wed, 19 Dec 2012 14:59:19 +0000 (15:59 +0100)
committerIustin Pop <iustin@google.com>
Wed, 19 Dec 2012 17:15:17 +0000 (18:15 +0100)
commit13659147883f745314918e27c012b15fe9758b53
treeb3d10120b843d4e1c5433c8ca6a895f301b5444a
parent572a277b57337abd6577601f2abb9f6f0ddfa1a1
Fix network LUs use of error code in OpPrereqError

Currently, most network LUs simply use EINVAL instead of correct error
codes; this patch tries to adjust the obvious cases.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py