diff options
| author | Chuck Short <zulcss@ubuntu.com> | 2011-09-12 18:56:51 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-09-12 18:56:51 +0000 |
| commit | 4bea4218fcfe700007b12d274f98aa778d8f98c4 (patch) | |
| tree | 0b49bc1604807854d78b841e1d8b9783b43e1ecd | |
| parent | b727f3d77544fce3966e5ad939ba1d39fc526705 (diff) | |
| parent | 965e510e7c3d66efd8d806418ca6a5c2f1c5b94e (diff) | |
Some arches dont have dmidecode, check to see if libvirt is capable of running rather getInfo of the arch its running on.
| -rw-r--r-- | nova/virt/libvirt/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py index 19cef5ad7..0a9b1912f 100644 --- a/nova/virt/libvirt/connection.py +++ b/nova/virt/libvirt/connection.py @@ -196,7 +196,7 @@ class LibvirtConnection(driver.ComputeDriver): def _test_connection(self): try: - self._wrapped_conn.getInfo() + self._wrapped_conn.getCapabilities() return True except libvirt.libvirtError as e: if e.get_error_code() == libvirt.VIR_ERR_SYSTEM_ERROR and \ |
