[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH v2 1/5] virtinst: add probe functionality to test for metadata support



Suggested-by: Cole Robinson <crobinso redhat com>
Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 virtinst/support.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtinst/support.py b/virtinst/support.py
index 0ef1c81..a25d695 100644
--- a/virtinst/support.py
+++ b/virtinst/support.py
@@ -344,6 +344,8 @@ SUPPORT_DOMAIN_SET_METADATA = _make(version=9010)
 SUPPORT_DOMAIN_CPU_HOST_MODEL = _make(version=9010)
 SUPPORT_DOMAIN_LIST_SNAPSHOTS = _make(function="virDomain.listAllSnapshots",
                                       args=())
+SUPPORT_DOMAIN_GET_METADATA = _make(function="virDomain.metadata",
+            args=(getattr(libvirt, "VIR_DOMAIN_METADATA_TITLE", 1), None, 0))
 
 
 # Pool checks
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]