mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-16 12:44:41 +00:00
pbs client: delete password: return success for non-existent file
It's currently possible to add a remote in PMG without password (via API), but deletion of such a remote would fail here. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
07c10d58a6
commit
01d2fb7844
@ -77,7 +77,7 @@ sub delete_password {
|
|||||||
|
|
||||||
my $pwfile = password_file_name($self);
|
my $pwfile = password_file_name($self);
|
||||||
|
|
||||||
unlink $pwfile or die "deleting password file failed - $!\n";
|
unlink $pwfile or $! == ENOENT or die "deleting password file failed - $!\n";
|
||||||
};
|
};
|
||||||
|
|
||||||
sub get_password {
|
sub get_password {
|
||||||
|
Loading…
Reference in New Issue
Block a user