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

recipe/equeue: fix lock file

The '.lock' suffix is automatically added by lockfile. See
https://opendev.org/openstack/pylockfile/src/tag/0.12.2/lockfile/__init__.py#L218

See nexedi/slapos!739
parent 92fdea86
......@@ -30,11 +30,14 @@ class Recipe(GenericBaseRecipe):
def install(self):
if not self.options['lockfile'].endswith('.lock'):
raise ValueError('lockfile parameter must end with .lock as equeue process will add .lock suffix')
args = [
self.options['equeue-binary'],
'--database', self.options['database'],
'--logfile', self.options['log'],
'--lockfile', self.options['lockfile']
'--lockfile', self.options['lockfile'][:-5]
]
if 'takeover-triggered-file-path' in self.options:
......
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