From 85c81f39e02fde5c09b12978d482151dc93a4b9e Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Tue, 31 Aug 2010 09:54:31 +0200 Subject: Fix up setup.py to match nova-rsapi -> nova-api-new rename. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0fd286f7d..25252e8f4 100644 --- a/setup.py +++ b/setup.py @@ -52,5 +52,5 @@ setup(name='nova', 'bin/nova-manage', 'bin/nova-network', 'bin/nova-objectstore', - 'bin/nova-rsapi', + 'bin/nova-api-new', 'bin/nova-volume']) -- cgit From 871c49adc3c824b9b1e095b0d7135c1fdab486c1 Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Tue, 31 Aug 2010 10:15:20 +0200 Subject: 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. --- nova/virt/libvirt_conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- cgit