PEP8
This commit is contained in:
parent
4b2000c451
commit
4766ad74ee
8
surok.py
8
surok.py
@ -30,7 +30,8 @@ f.close()
|
||||
# Get app configurations
|
||||
# Return list of patches to app discovery configuration
|
||||
def get_configs():
|
||||
confs = [f for f in listdir(conf['confd']) if isfile( join(conf['confd'], f) )]
|
||||
confs = [f for f in listdir(conf['confd']) if isfile(
|
||||
join(conf['confd'], f))]
|
||||
return confs
|
||||
|
||||
|
||||
@ -61,8 +62,7 @@ while 1:
|
||||
|
||||
# Populate my dictionary
|
||||
my = {"services": app_hosts,
|
||||
"conf_name": app_conf['conf_name']
|
||||
}
|
||||
"conf_name": app_conf['conf_name']}
|
||||
|
||||
# Generate config from template
|
||||
service_conf = gen(my, app_conf['template'])
|
||||
@ -70,6 +70,4 @@ while 1:
|
||||
stdout, first = reload_conf(service_conf, app_conf, first)
|
||||
print(stdout)
|
||||
|
||||
|
||||
sleep(conf['wait_time'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user