diff options
author | Daniel Veillard <veillard@redhat.com> | 2008-06-11 07:49:01 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2008-06-11 07:49:01 +0000 |
commit | f0332b83e087e83032f983315b22d1eb5b309ff5 (patch) | |
tree | f38de12bffc65944daadbfc198585260efc73e7a /libvir.py | |
parent | 1b58a90c1a40d555fd82d91e89f8cf0a51042059 (diff) | |
download | libvirt-python-split-f0332b83e087e83032f983315b22d1eb5b309ff5.tar.gz libvirt-python-split-f0332b83e087e83032f983315b22d1eb5b309ff5.tar.xz libvirt-python-split-f0332b83e087e83032f983315b22d1eb5b309ff5.zip |
* python/libvir.py python/libvirt-python-api.xml: more pythonv0.4.4
cleanups by Cole Robinson
Daniel
Diffstat (limited to 'libvir.py')
-rw-r--r-- | libvir.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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() |