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:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2019-03-28 14:37:22 -07:00
1 parent 6c86db132b
commit adaf3d6415
1 file changed
+1 -1
+1 -1
View File
@@ -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)