From b4b993e93e9621a91ed18bb2724df472fc8b3e12 Mon Sep 17 00:00:00 2001 From: Justus Wingert Date: Mon, 14 Aug 2023 16:40:12 +0200 Subject: [PATCH] Using output from shell method correctly --- management/web_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/web_update.py b/management/web_update.py index 56fba5ce..41d8ca0c 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -111,7 +111,7 @@ def do_web_update(env): nginx_conf.append((domain, make_domain_config(domain, [template0, template3], ssl_certificates, env))) # Load the currently enabled sites for nginx. - sites_enabled = shell('check_output', ["ls", "/etc/nginx/sites-enabled"]) + _, sites_enabled = shell('check_output', ["ls", "/etc/nginx/sites-enabled"]) warnings = [] # Did the files change? If not, don't bother writing & restarting nginx.