Daniel P. Berrange 350081
From a6b8bae5a6a4752926eba409202ec061d81c6c8a Mon Sep 17 00:00:00 2001
Daniel P. Berrange 350081
From: Serge Hallyn <serge.hallyn@canonical.com>
Daniel P. Berrange 350081
Date: Wed, 30 Jan 2013 21:05:45 -0600
Daniel P. Berrange 350081
Subject: [PATCH] complete virterror->virerror name change
Daniel P. Berrange 350081
Daniel P. Berrange 350081
Without these two string changes in generator.py, the
Daniel P. Berrange 350081
virGetLastError wrapper does not get created in
Daniel P. Berrange 350081
/usr/share/pyshared/libvirt.py.  Noticed when running
Daniel P. Berrange 350081
tests with virt-install.
Daniel P. Berrange 350081
Daniel P. Berrange 350081
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Daniel P. Berrange 350081
---
Daniel P. Berrange 350081
 python/generator.py | 4 ++--
Daniel P. Berrange 350081
 1 file changed, 2 insertions(+), 2 deletions(-)
Daniel P. Berrange 350081
Daniel P. Berrange 350081
diff --git a/python/generator.py b/python/generator.py
Daniel P. Berrange 350081
index 5d27f66..71ca883 100755
Daniel P. Berrange 350081
--- a/python/generator.py
Daniel P. Berrange 350081
+++ b/python/generator.py
Daniel P. Berrange 350081
@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler):
Daniel P. Berrange 350081
                     self.function_return_field = attrs['field']
Daniel P. Berrange 350081
         elif tag == 'enum':
Daniel P. Berrange 350081
             if (attrs['file'] == "libvirt" or
Daniel P. Berrange 350081
-                attrs['file'] == "virterror"):
Daniel P. Berrange 350081
+                attrs['file'] == "virerror"):
Daniel P. Berrange 350081
                 enum(attrs['type'],attrs['name'],attrs['value'])
Daniel P. Berrange 350081
             elif attrs['file'] == "libvirt-lxc":
Daniel P. Berrange 350081
                 lxc_enum(attrs['type'],attrs['name'],attrs['value'])
Daniel P. Berrange 350081
@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler):
Daniel P. Berrange 350081
             if self.function != None:
Daniel P. Berrange 350081
                 if (self.function_module == "libvirt" or
Daniel P. Berrange 350081
                     self.function_module == "virevent" or
Daniel P. Berrange 350081
-                    self.function_module == "virterror"):
Daniel P. Berrange 350081
+                    self.function_module == "virerror"):
Daniel P. Berrange 350081
                     function(self.function, self.function_descr,
Daniel P. Berrange 350081
                              self.function_return, self.function_args,
Daniel P. Berrange 350081
                              self.function_file, self.function_module,
Daniel P. Berrange 350081
-- 
Daniel P. Berrange 350081
1.8.1
Daniel P. Berrange 350081