From f985f33afdfe157c704ded67e9af6280c02c4ef8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 16 Jun 2021 19:24:24 +0200 Subject: [PATCH] api: content/delete: die with newline to avoid addign file-context Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Content.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index 8b0e3de..f8664af 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2/Storage/Content.pm @@ -454,8 +454,9 @@ __PACKAGE__->register_method ({ if (!$currently_deleting) { my $status = PVE::Tools::upid_read_status($upid); + chomp $status; return undef if $status eq 'OK'; - die $status; + die "$status\n"; } } return $upid;