summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorJosh Kearney <josh.kearney@rackspace.com>2010-12-28 12:19:25 -0600
committerJosh Kearney <josh.kearney@rackspace.com>2010-12-28 12:19:25 -0600
commit7ddd833bc61252061b3dfd2449765a93f750bffa (patch)
tree3faf661f271e5b728201c11740a7119d0e8b6a4e /nova/virt
parent4cb30d2327ad6e03acddc7d1fc71dccfc1c272a1 (diff)
downloadnova-7ddd833bc61252061b3dfd2449765a93f750bffa.tar.gz
nova-7ddd833bc61252061b3dfd2449765a93f750bffa.tar.xz
nova-7ddd833bc61252061b3dfd2449765a93f750bffa.zip
Added get_diagnostics placeholders to libvirt and fake
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/fake.py3
-rw-r--r--nova/virt/libvirt_conn.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/nova/virt/fake.py b/nova/virt/fake.py
index 706888b0d..880772b22 100644
--- a/nova/virt/fake.py
+++ b/nova/virt/fake.py
@@ -202,6 +202,9 @@ class FakeConnection(object):
'num_cpu': 2,
'cpu_time': 0}
+ def get_diagnostics(self, instance_name):
+ pass
+
def list_disks(self, instance_name):
"""
Return the IDs of all the virtual disks attached to the specified
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py
index 65cf65098..06ace7457 100644
--- a/nova/virt/libvirt_conn.py
+++ b/nova/virt/libvirt_conn.py
@@ -567,6 +567,9 @@ class LibvirtConnection(object):
'num_cpu': num_cpu,
'cpu_time': cpu_time}
+ def get_diagnostics(self, instance_name):
+ raise exception.APIError("diagnostics not supported for libvirt")
+
def get_disks(self, instance_name):
"""
Note that this function takes an instance name, not an Instance, so