[test-API][PATCH] Update 2 functions for wrapped libs

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

 



* lib/nodedevAPI.py: remove non-existent function ref()
* lib/secretAPI.py: fix case sensitive error on function name UUID()
---
 lib/nodedevAPI.py |    9 ---------
 lib/secretAPI.py  |    2 +-
 2 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/lib/nodedevAPI.py b/lib/nodedevAPI.py
index cc96909..64fc4b8 100644
--- a/lib/nodedevAPI.py
+++ b/lib/nodedevAPI.py
@@ -137,15 +137,6 @@ class NodedevAPI:
             code = e.get_error_code()
             raise exception.LibvirtAPI(message, code)
 
-    def ref(self, name):
-        try:
-            obj = self.lookup_by_name(name)
-            obj.ref()
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
     def get_name(self, obj):
         try:
             device_name = obj.name()
diff --git a/lib/secretAPI.py b/lib/secretAPI.py
index 876d22d..4aac27f 100644
--- a/lib/secretAPI.py
+++ b/lib/secretAPI.py
@@ -84,7 +84,7 @@ class SecretAPI(object):
     def get_uuid(self, uuidstr):
         try:
             secret_obj = self.get_secret_by_uuid_string(uuidstr)
-            return secret_obj.uuid()
+            return secret_obj.UUID()
         except libvirt.libvirtError, e:
             message = e.get_error_message()
             code = e.get_error_code()
-- 
1.7.4.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]