From 5d942f5aff03dbd4ca8e7445a7375f287d38330c Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Wed, 27 Sep 2017 14:43:11 +0200 Subject: [PATCH] importovf: explicitly returns undef We set the returns value to { type => 'null' } but we returned an empty string, which was confusing the cli handler. --- PVE/CLI/qm.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 0e17cc96..90a44efd 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -599,7 +599,9 @@ __PACKAGE__->register_method ({ }; my $wait_for_lock = 1; - return PVE::QemuConfig->lock_config_full($vmid, $wait_for_lock, $importfn); + PVE::QemuConfig->lock_config_full($vmid, $wait_for_lock, $importfn); + + return undef; } });