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.path import isfile, join
|
||||
import json
|
||||
import argparse
|
||||
from surok.templates import gen
|
||||
from surok.discovery import resolve
|
||||
from surok.system import reload_conf
|
||||
|
||||
import argparse
|
||||
|
||||
# Load base configurations
|
||||
surok_conf = '/etc/surok/conf/surok.json'
|
||||
@ -58,10 +58,9 @@ while 1:
|
||||
|
||||
# Will be removed later
|
||||
# For old configs
|
||||
try:
|
||||
loglevel = 'info'
|
||||
if 'loglevel' in conf:
|
||||
loglevel = conf['loglevel']
|
||||
except:
|
||||
conf['loglevel'] = 'info'
|
||||
|
||||
# Resolve services
|
||||
app_hosts = resolve(app_conf, conf)
|
||||
|
Loading…
Reference in New Issue
Block a user