From 9de12c72dea5af15fad2d6f93ac1619a5b501707 Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 9 Mar 2025 11:11:35 -0700 Subject: [PATCH] added missing return --- haproxy_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/haproxy_manager.py b/haproxy_manager.py index 7bd9736..bb81b57 100644 --- a/haproxy_manager.py +++ b/haproxy_manager.py @@ -155,6 +155,7 @@ def regenerate_conf(): def reload_haproxy(): if is_process_running('haproxy'): subprocess.run(['echo', '"reload"', '|', 'socat', 'stdio', '/tmp/haproxy-cli']) + return jsonify({'status': 'success'}), 200 else: try: result = subprocess.run(