Move the luxi error handling into errors.py
authorIustin Pop <iustin@google.com>
Thu, 27 Aug 2009 13:01:23 +0000 (15:01 +0200)
committerIustin Pop <iustin@google.com>
Fri, 25 Sep 2009 15:56:46 +0000 (17:56 +0200)
commita66073315039e25f56b4d586775eff3e7a99f977
tree5b9dcad5a6969af2f9180a34fb987c7f84eac681
parent318212085b7bcf4bb70a1e9c47d2d7507d2dc35b
Move the luxi error handling into errors.py

Currently the luxi error handling is hardcoded as special encoding on
the masterd-side and special decoding on the client side. This patch
moves it to errors.py such that other parts of the code can reuse the
same encoding.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
(cherry picked from commit 6956e9cd11e7fc3849824d9953c622143a732bd7)
daemons/ganeti-masterd
lib/errors.py
lib/luxi.py