mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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']
|
le_arguments = ['manage_hooks', 'enable']
|
||||||
|
|
||||||
if not enabled_modules == []:
|
if not enabled_modules == []:
|
||||||
le_arguments.extend(['--modules', ' '.join(enabled_modules)])
|
le_arguments.extend(['--modules'] + enabled_modules)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
actions.superuser_run(module, module_args)
|
actions.superuser_run(module, module_args)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user