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