[pve-devel] [PATCH manager 1/2] api2: osd destroy: fix error function
Stoiko Ivanov
s.ivanov at proxmox.com
Tue Nov 24 19:55:46 CET 2020
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
PVE/API2/Ceph/OSD.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/API2/Ceph/OSD.pm b/PVE/API2/Ceph/OSD.pm
index f1f39bf9..685b68bc 100644
--- a/PVE/API2/Ceph/OSD.pm
+++ b/PVE/API2/Ceph/OSD.pm
@@ -575,7 +575,7 @@ __PACKAGE__->register_method ({
# try to remove pvs, but do not fail if it does not work
for my $osd_part (@{$osd_list->{$osdid}}) {
for my $dev (@{$osd_part->{devices}}) {
- eval { run_command(['/sbin/pvremove', $dev], errfunc => {}) };
+ eval { run_command(['/sbin/pvremove', $dev], errfunc => sub {}) };
warn $@ if $@;
}
}
--
2.20.1
More information about the pve-devel
mailing list