Commit d368f658 by Czémán Arnold

firewall: also prettify

parent ecbe7ac8
......@@ -24,4 +24,4 @@ from firewall.tasks.local_tasks import reloadtask
class Command(BaseCommand):
def handle(self, *args, **options):
reloadtask('Vlan', sync = True)
reloadtask('Vlan', sync=True)
......@@ -107,6 +107,6 @@ def reloadtask(type='Host', timeout=15, sync=False):
logger.info("Reload %s on next periodic iteration applying change to %s.",
", ".join(reload), type)
if all([cache.add("%s_lock" % i, 'true', 30) for i in reload]):
res=reloadtask_worker.apply_async(queue='localhost.man', countdown=5)
res = reloadtask_worker.apply_async(queue='localhost.man', countdown=5)
if sync:
res.get(15)
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 sign in to comment