diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-08-31 19:23:53 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-08-31 19:23:53 +0000 |
| commit | d2ff9c07354666e9fad840a4e929960cc3ff3e37 (patch) | |
| tree | ff27af2bf5c89ab3cb9c664f3241385eedf9f687 | |
| parent | 1b3afa58270c1d996989f5336cc6d5c9b5a3aaaf (diff) | |
| parent | 871c49adc3c824b9b1e095b0d7135c1fdab486c1 (diff) | |
| download | nova-d2ff9c07354666e9fad840a4e929960cc3ff3e37.tar.gz nova-d2ff9c07354666e9fad840a4e929960cc3ff3e37.tar.xz nova-d2ff9c07354666e9fad840a4e929960cc3ff3e37.zip | |
Call getInfo() instead of getVersion() on the libvirt connection object. virConnectGetVersion was not exposed properly in the python bindings until quite recently, so this makes us rather more backwards compatible.
| -rw-r--r-- | nova/virt/libvirt_conn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 1ff8175d0..c29bdb466 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -91,7 +91,7 @@ class LibvirtConnection(object): def _test_connection(self): try: - self._wrapped_conn.getVersion() + self._wrapped_conn.getInfo() return True except libvirt.libvirtError as e: if e.get_error_code() == libvirt.VIR_ERR_SYSTEM_ERROR and \ |
