]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
acme plugins: handle update errors
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 16 Apr 2020 18:42:17 +0000 (20:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 3 May 2020 12:10:17 +0000 (14:10 +0200)
instead of silently ignoring them

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/ACMEPlugin.pm

index df570e6a50845ead4752fada20e8a951c2349bff..6b789a1dc8a1a040208938685f9da533d637ed9d 100644 (file)
@@ -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;
     }});