mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
letsencrypt: Call letsencrypt manage_hooks with correct arguments
The `--modules` argument in letsencrypt toggle_hooks command is passed a list of plinth modules as a single space-separated string. They should instead be passed as a sequence of individual arguments. Fixes #1520 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
6c86db132b
commit
adaf3d6415
@ -156,7 +156,7 @@ def toggle_module(request, domain, module):
|
||||
le_arguments = ['manage_hooks', 'enable']
|
||||
|
||||
if not enabled_modules == []:
|
||||
le_arguments.extend(['--modules', ' '.join(enabled_modules)])
|
||||
le_arguments.extend(['--modules'] + enabled_modules)
|
||||
|
||||
try:
|
||||
actions.superuser_run(module, module_args)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user