From eeabad5a1363782e7916429db718d3b472e47779 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 8 May 2020 09:38:34 +0200 Subject: [PATCH] ldap_delete_credentials: don't complain if already deleted Signed-off-by: Thomas Lamprecht --- PVE/Auth/LDAP.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Auth/LDAP.pm b/PVE/Auth/LDAP.pm index 64250cb..9fa9095 100755 --- a/PVE/Auth/LDAP.pm +++ b/PVE/Auth/LDAP.pm @@ -411,6 +411,7 @@ sub ldap_delete_credentials { my ($realmid) = @_; if (my $cred_file = get_cred_file($realmid)) { + return if ! -e $cred_file; # nothing to do unlink($cred_file) or warn "removing LDAP credentials '$cred_file' failed: $!\n"; } } -- 2.39.2