From 1b26079c648f5fbead6e36eb604c869f2b2f9cda Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 21 Feb 2019 13:44:05 +0800 Subject: [PATCH] Update firewall_api.py --- class/core/firewall_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/class/core/firewall_api.py b/class/core/firewall_api.py index e5f311c57..3d9116a05 100755 --- a/class/core/firewall_api.py +++ b/class/core/firewall_api.py @@ -303,8 +303,9 @@ class firewall_api: return False return True if self.__isFirewalld: - data = public.execShell( - "ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'") + cmd = "ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'" + print cmd + data = public.execShell(cmd) if data[0] == '': return False return True