Move cluster verify error codes to constants
authorAndrea Spadaccini <spadaccio@google.com>
Tue, 4 Oct 2011 12:26:43 +0000 (13:26 +0100)
committerAndrea Spadaccini <spadaccio@google.com>
Wed, 5 Oct 2011 12:17:08 +0000 (13:17 +0100)
commiteedf99b56ad1bb0574f6553618765cba527936af
tree74078a38ff17be7900e7f3d67edf3e8032fa891c
parent909b3a0e6f651a2aefd47f42c4c6dbca892e43d7
Move cluster verify error codes to constants

- move the cluster verify error codes from cmdlib._VerifyErrors to
  constants;
- add to each of them the CV (Cluster Verify) prefix;
- add the CV_ALL_ECODES and CV_ALL_ECODES_STRINGS constants;
- wrap the lines that exceed 80 characters after changing the error
  code names to the new ones.

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py
lib/constants.py
test/ganeti.cmdlib_unittest.py