提交 a6b8bae5 编写于 作者: S Serge Hallyn 提交者: Doug Goldstein

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: NSerge Hallyn <serge.hallyn@ubuntu.com>
上级 d6c85970
...@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler): ...@@ -123,7 +123,7 @@ class docParser(xml.sax.handler.ContentHandler):
self.function_return_field = attrs['field'] self.function_return_field = attrs['field']
elif tag == 'enum': elif tag == 'enum':
if (attrs['file'] == "libvirt" or if (attrs['file'] == "libvirt" or
attrs['file'] == "virterror"): attrs['file'] == "virerror"):
enum(attrs['type'],attrs['name'],attrs['value']) enum(attrs['type'],attrs['name'],attrs['value'])
elif attrs['file'] == "libvirt-lxc": elif attrs['file'] == "libvirt-lxc":
lxc_enum(attrs['type'],attrs['name'],attrs['value']) lxc_enum(attrs['type'],attrs['name'],attrs['value'])
...@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler): ...@@ -137,7 +137,7 @@ class docParser(xml.sax.handler.ContentHandler):
if self.function != None: if self.function != None:
if (self.function_module == "libvirt" or if (self.function_module == "libvirt" or
self.function_module == "virevent" or self.function_module == "virevent" or
self.function_module == "virterror"): self.function_module == "virerror"):
function(self.function, self.function_descr, function(self.function, self.function_descr,
self.function_return, self.function_args, self.function_return, self.function_args,
self.function_file, self.function_module, self.function_file, self.function_module,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册