From d5cc16d745706ca0b7cc244792d53207e889d1e7 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sun, 7 Oct 2012 23:26:43 +0200
Subject: [PATCH] Enable conversion of errors constants

These will be needed for the serialisation of errors.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 autotools/convert-constants | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/autotools/convert-constants b/autotools/convert-constants
index b08f6f33e..1d18540cd 100755
--- a/autotools/convert-constants
+++ b/autotools/convert-constants
@@ -25,11 +25,12 @@
 import re
 import types
 
+from ganeti import _autoconf
 from ganeti import compat
 from ganeti import constants
+from ganeti import errors
 from ganeti import luxi
 from ganeti import qlang
-from ganeti import _autoconf
 
 
 #: Constant name regex
@@ -293,6 +294,7 @@ def main():
   print Convert(luxi, "luxi")
   print Convert(qlang, "qlang")
   print Convert(_autoconf, "autoconf")
+  print Convert(errors, "errors")
 
 
 if __name__ == "__main__":
-- 
GitLab