]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
python: Document virNodeGetInfo bug
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 30 Sep 2013 09:23:08 +0000 (11:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 30 Sep 2013 09:42:52 +0000 (11:42 +0200)
The memory size in virNodeGetInfo python API binding is reported in MiB
instead of KiB (like we have in C struct). However, there already might
be applications out there relying on this inconsistence so we can't
simply fix it. Document this sad fact as known bug.

python/libvirt-override-api.xml

index 1bceb0502e9c20aaacbbe57485a81ed87d45bffe..337d0a093fdc6451e2503b0c600e0ab937eec215 100644 (file)
       <arg name='flags' type='unsigned int' info='flags, currently unused, pass 0.'/>
     </function>
     <function name='virNodeGetInfo' file='python'>
-      <info>Extract hardware information about the Node.</info>
+      <info>Extract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB.</info>
       <return type='char *' info='the list of information or None in case of error'/>
       <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
     </function>