]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
complete virterror->virerror name change
authorSerge Hallyn <serge.hallyn@canonical.com>
Thu, 31 Jan 2013 03:05:45 +0000 (21:05 -0600)
committerDoug Goldstein <cardoe@cardoe.com>
Thu, 31 Jan 2013 14:39:53 +0000 (08:39 -0600)
Without these two string changes in generator.py, the
virGetLastError wrapper does not get created in
/usr/share/pyshared/libvirt.py.  Noticed when running
tests with virt-install.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
python/generator.py

index 5d27f66c056da66bf77908841a3acc8c477247d2..71ca8831bc3887c4ff53c1e8cf928b8855916b1b 100755 (executable)
@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler):
                     self.function_return_field = attrs['field']
         elif tag == 'enum':
             if (attrs['file'] == "libvirt" or
-                attrs['file'] == "virterror"):
+                attrs['file'] == "virerror"):
                 enum(attrs['type'],attrs['name'],attrs['value'])
             elif attrs['file'] == "libvirt-lxc":
                 lxc_enum(attrs['type'],attrs['name'],attrs['value'])
@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler):
             if self.function != None:
                 if (self.function_module == "libvirt" or
                     self.function_module == "virevent" or
-                    self.function_module == "virterror"):
+                    self.function_module == "virerror"):
                     function(self.function, self.function_descr,
                              self.function_return, self.function_args,
                              self.function_file, self.function_module,