Commit 59756e63 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Thomas Gambier

grid: Stabilize service list to prevent supervisord restart

/reviewed-on nexedi/slapos.core!120
parent 1c45cba5
......@@ -663,10 +663,10 @@ class Partition(object):
self.supervisor_configuration_group = ""
if os.path.exists(self.run_path):
if os.path.isdir(self.run_path):
runner_list = os.listdir(self.run_path)
runner_list = sorted(os.listdir(self.run_path))
if os.path.exists(self.service_path):
if os.path.isdir(self.service_path):
service_list = os.listdir(self.service_path)
service_list = sorted(os.listdir(self.service_path))
if len(runner_list) == 0 and len(service_list) == 0:
self.logger.warning('No runners nor services found for partition %r' %
self.partition_id)
......
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 to comment