summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virConnect.py
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt-override-virConnect.py')
-rw-r--r--libvirt-override-virConnect.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py
index caca982..6bec66d 100644
--- a/libvirt-override-virConnect.py
+++ b/libvirt-override-virConnect.py
@@ -266,3 +266,15 @@
retlist.append(virNWFilter(self, _obj=filter_ptr))
return retlist
+
+ def listAllSecrets(self, flags):
+ """Returns a list of secret objects"""
+ ret = libvirtmod.virConnectListAllSecrets(self._o, flags)
+ if ret is None:
+ raise libvirtError("virConnectListAllSecrets() failed", conn=self)
+
+ retlist = list()
+ for secret_ptr in ret:
+ retlist.append(virSecret(self, _obj=secret_ptr))
+
+ return retlist