From f0332b83e087e83032f983315b22d1eb5b309ff5 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 11 Jun 2008 07:49:01 +0000 Subject: * python/libvir.py python/libvirt-python-api.xml: more python cleanups by Cole Robinson Daniel --- libvir.py | 6 +++++- libvirt-python-api.xml | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libvir.py b/libvir.py index 3a38898..784152a 100644 --- a/libvir.py +++ b/libvir.py @@ -15,13 +15,17 @@ import types # The root of all libvirt errors. class libvirtError(Exception): - def __init__(self, msg, conn=None, dom=None, net=None): + def __init__(self, msg, conn=None, dom=None, net=None, pool=None, vol=None): Exception.__init__(self, msg) if dom is not None: conn = dom._conn elif net is not None: conn = net._conn + elif pool is not None: + conn = pool._conn + elif vol is not None: + conn = vol._conn if conn is None: self.err = virGetLastError() diff --git a/libvirt-python-api.xml b/libvirt-python-api.xml index da643d7..f3b82fc 100644 --- a/libvirt-python-api.xml +++ b/libvirt-python-api.xml @@ -83,6 +83,11 @@ + + Extract the autostart flag for a storage pool + + + Extracts block device statistics for a domain -- cgit v1.2.1