fix weird issue with params

This commit is contained in:
Jan Koppe 2020-04-29 22:32:55 +02:00
parent f97720ac67
commit d9a8905724
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
1 changed files with 3 additions and 2 deletions

5
main.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
import os
import signal
import sys
@ -122,7 +123,7 @@ def claim_task(uuid):
svd_update()
def loop(config):
def loop():
global claims
while True:
# portier heartbeat
@ -161,7 +162,7 @@ def main():
signal.signal(signal.SIGTERM, sigterm_handler)
# check connection to supervisord
loop({})
loop()
main()