Commit df2f035e by Bach Dániel

firewall: fix reloadtask

parent a6511143
...@@ -98,5 +98,5 @@ def reloadtask(type='Host', timeout=15): ...@@ -98,5 +98,5 @@ def reloadtask(type='Host', timeout=15):
}[type] }[type]
logger.info("Reload %s on next periodic iteration applying change to %s.", logger.info("Reload %s on next periodic iteration applying change to %s.",
", ".join(reload), type) ", ".join(reload), type)
if all(cache.add("%s_lock" % i, True, 30) for i in reload): if all([cache.add("%s_lock" % i, 'true', 30) for i in reload]):
reloadtask_worker.apply_async(queue='localhost.man', countdown=5) reloadtask_worker.apply_async(queue='localhost.man', countdown=5)
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