summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Hallyn <serge.hallyn@canonical.com>2013-01-30 21:05:45 -0600
committerDoug Goldstein <cardoe@cardoe.com>2013-01-31 08:39:53 -0600
commit9654aeb6ce522bff6329e3f5e9426e33ee8a45fe (patch)
tree1ecc0adf669bd3849f0f467aeea5cacecfd0a657
parenta2e333640d28df8d31d8ae03d13e5dbf11380381 (diff)
downloadlibvirt-python-split-9654aeb6ce522bff6329e3f5e9426e33ee8a45fe.tar.gz
libvirt-python-split-9654aeb6ce522bff6329e3f5e9426e33ee8a45fe.tar.xz
libvirt-python-split-9654aeb6ce522bff6329e3f5e9426e33ee8a45fe.zip
complete virterror->virerror name change
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>
-rwxr-xr-xgenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index 5d27f66..71ca883 100755
--- a/generator.py
+++ b/generator.py
@@ -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,