From 9dcb1ca12de254b4a9eb981941eb8499555c81f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 16 Apr 2020 20:42:17 +0200 Subject: [PATCH] acme plugins: handle update errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit instead of silently ignoring them Signed-off-by: Fabian Grünbichler --- PVE/API2/ACMEPlugin.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/ACMEPlugin.pm b/PVE/API2/ACMEPlugin.pm index df570e6a..6b789a1d 100644 --- a/PVE/API2/ACMEPlugin.pm +++ b/PVE/API2/ACMEPlugin.pm @@ -100,6 +100,7 @@ __PACKAGE__->register_method({ my $type = extract_param($param, 'type'); PVE::Cluster::cfs_lock_file($FILENAME, undef, $update_config, $id, "add", $type, $param); + die "$@" if $@; return undef; }}); @@ -129,6 +130,7 @@ __PACKAGE__->register_method({ my $id = extract_param($param, 'id'); PVE::Cluster::cfs_lock_file($FILENAME, undef, $update_config, $id, "del", undef, $param ); + die "$@" if $@; return undef; }}); -- 2.39.5