From 1c5346467de9870019d26b5a4741656826a9cda4 Mon Sep 17 00:00:00 2001 From: Andreas Stuerz Date: Tue, 23 Feb 2021 16:36:02 +0100 Subject: [PATCH] fix status remote cert display add description for cert_sync_bulk --- .../src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py | 4 ++-- .../src/opnsense/service/conf/actions.d/actions_haproxy.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py index 87632bda0..0427b2e7e 100755 --- a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py +++ b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py @@ -113,7 +113,7 @@ class Diff(SyncWithTarget): status[crt_list.frontend_id]['certs'][cert.cert_id] = { 'path': cert.path, 'local': cert.local, - 'remote': cert.local, + 'remote': cert.remote, } return status @@ -260,7 +260,7 @@ class Diff(SyncWithTarget): print(" " + repr(message)) for cert in crt_list['del']: - print(f" DEL: {cert['cert']}") + print(f"\n DEL: {cert['cert']}") for message in cert['messages']: print(" " + repr(message)) print() diff --git a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf index 7301e83e8..48bcc629d 100644 --- a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf +++ b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf @@ -99,3 +99,4 @@ command:/usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output parameters: type:script_output message:Sync ssl certificates into HAProxy memory for all frontends +description:Sync ssl certificates changes into HAProxy memory