Commit bff3c4db authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

grid: fix supervisord configuration generation

previous code was matching way too many files: when processing
slappart1, all partitions starting with "slappart1" (e.g. slappart10)
would match too.

This is a fixup of db98a521.
parent 0212d575
Pipeline #31245 failed with stage
in 0 seconds
...@@ -727,7 +727,7 @@ class Partition(object): ...@@ -727,7 +727,7 @@ class Partition(object):
""" """
remaining = set( remaining = set(
f for f in os.listdir(self.supervisord_partition_configuration_dir) f for f in os.listdir(self.supervisord_partition_configuration_dir)
if f.startswith(self.partition_id) if f == '%s.conf' % self.partition_id
) )
for group, programs in self.supervisor_conf.items(): for group, programs in self.supervisor_conf.items():
filename = '%s.conf' % group filename = '%s.conf' % group
......
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