PEP8
This commit is contained in:
parent
d63f2a5f3a
commit
95abf430c8
7
surok.py
7
surok.py
@ -5,11 +5,11 @@ import os
|
|||||||
from os import listdir
|
from os import listdir
|
||||||
from os.path import isfile, join
|
from os.path import isfile, join
|
||||||
import json
|
import json
|
||||||
|
import argparse
|
||||||
from surok.templates import gen
|
from surok.templates import gen
|
||||||
from surok.discovery import resolve
|
from surok.discovery import resolve
|
||||||
from surok.system import reload_conf
|
from surok.system import reload_conf
|
||||||
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
# Load base configurations
|
# Load base configurations
|
||||||
surok_conf = '/etc/surok/conf/surok.json'
|
surok_conf = '/etc/surok/conf/surok.json'
|
||||||
@ -58,10 +58,9 @@ while 1:
|
|||||||
|
|
||||||
# Will be removed later
|
# Will be removed later
|
||||||
# For old configs
|
# For old configs
|
||||||
try:
|
loglevel = 'info'
|
||||||
|
if 'loglevel' in conf:
|
||||||
loglevel = conf['loglevel']
|
loglevel = conf['loglevel']
|
||||||
except:
|
|
||||||
conf['loglevel'] = 'info'
|
|
||||||
|
|
||||||
# Resolve services
|
# Resolve services
|
||||||
app_hosts = resolve(app_conf, conf)
|
app_hosts = resolve(app_conf, conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user