[test-api][PATCH] Fix issue : nwfilter list never success

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

 



Fix issue : nwfilter list never success 

---
 repos/nwfilter/nwfilter_list.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repos/nwfilter/nwfilter_list.py b/repos/nwfilter/nwfilter_list.py
index 0a3718e..8c392bc 100644
--- a/repos/nwfilter/nwfilter_list.py
+++ b/repos/nwfilter/nwfilter_list.py
@@ -48,7 +48,7 @@ def nwfilter_list(params):
         nwfilter_list_dir = get_nwfilterlist_dir()
         if nwfilter_num == len(nwfilter_list_api) and \
         len(nwfilter_list_api) == len(nwfilter_list_dir) and \
-        cmp(nwfilter_namelist_api,nwfilter_list_dir):
+        cmp(nwfilter_namelist_api,nwfilter_list_dir) == 0 :
             logger.info("The number of available network filters is %s" % \
                     nwfilter_num)
         else:
-- 
1.8.3.1

--
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]