Commit a1964170 authored by Łukasz Nowak's avatar Łukasz Nowak

slapgrid: Save rules also if no change, but file not present

parent 041b23bc
......@@ -795,6 +795,7 @@ stderr_logfile_backups=1
raise Exception("Failed to load firewalld rules with command %s.\n%" % (
stderr, reload_cmd))
if reload_rules or not os.path.exists(firewall_rules_path):
with open(firewall_rules_path, 'w') as frules:
frules.write(json.dumps(json_list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment