[virt-tools-list] [PATCH 6/6] Added a get_capabilities() API to libvirtworker.

Darryl L. Pierce dpierce at redhat.com
Fri May 13 14:57:00 UTC 2011


---
 src/virtManagerTui/libvirtworker.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/virtManagerTui/libvirtworker.py b/src/virtManagerTui/libvirtworker.py
index 59b85e5..185e673 100644
--- a/src/virtManagerTui/libvirtworker.py
+++ b/src/virtManagerTui/libvirtworker.py
@@ -116,6 +116,10 @@ class LibvirtWorker:
             self.__vmmconn = old_vmmconn
             raise error
 
+    def get_capabilities(self):
+        '''Returns the capabilities for this libvirt host.'''
+        return self.__capabilities
+
     def list_domains(self, defined = True, started = True):
         '''Lists all domains.'''
         # XXX: This doesn't abide the passed parameters
-- 
1.7.4.4




More information about the virt-tools-list mailing list