summaryrefslogtreecommitdiff
path: root/lorry-controller-minion
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-07-21 17:43:10 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-07-21 17:43:10 +0100
commitb662a6eca551c8910fa76ba033b1138a3ed1a12f (patch)
treef9aaddd2b54b9470b6ecaa540481e6c3ea62788d /lorry-controller-minion
parent1893e9a00893c083b7282dae31882e2aae39816d (diff)
downloadlorry-controller-b662a6eca551c8910fa76ba033b1138a3ed1a12f.tar.gz
MINION: Allow specifying multiple configuration files for Lorry
Change the 'lorry-config' setting from string to string-list type. This will allow separating generic and site configuration files.
Diffstat (limited to 'lorry-controller-minion')
-rwxr-xr-xlorry-controller-minion6
1 files changed, 3 insertions, 3 deletions
diff --git a/lorry-controller-minion b/lorry-controller-minion
index dfae50f..1900313 100755
--- a/lorry-controller-minion
+++ b/lorry-controller-minion
@@ -73,7 +73,7 @@ class MINION(cliapp.Application):
metavar='CMD',
default='lorry')
- self.settings.string(
+ self.settings.string_list(
['lorry-config'],
'lorry configuration file to use',
metavar='LORRY_CFG')
@@ -167,8 +167,8 @@ class MINION(cliapp.Application):
self.settings['lorry-cmd']
]
- if self.settings['lorry-config']:
- argv.extend(['--config', self.settings['lorry-config']])
+ argv.extend(['--config=' + name
+ for name in self.settings['lorry-config']])
argv.append(self.temp_lorry_filename)