[gestion/gen_confs/firewall_new.py] Message d'erreur erroné.
This commit is contained in:
parent
c371496e74
commit
a78a22eed5
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ def iptables(cmd):
|
|||
|
||||
def iptables_restore(path):
|
||||
#~ syslog.syslog(syslog.LOG_INFO,cmd)
|
||||
status,output=getstatusoutput("cat %s | /sbin/iptables-restore -n" % path)
|
||||
cmd = "cat %s | /sbin/iptables-restore -n" % path
|
||||
status,output=getstatusoutput(cmd)
|
||||
if status:
|
||||
raise IptablesError(cmd,status,output)
|
||||
return output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue