]> git.proxmox.com Git - qemu-server.git/commitdiff
importovf: explicitly returns undef
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 27 Sep 2017 12:43:11 +0000 (14:43 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 27 Sep 2017 12:54:56 +0000 (14:54 +0200)
We set the returns value to  { type => 'null' } but we returned an empty
string, which was confusing the cli handler.

PVE/CLI/qm.pm

index 0e17cc9671de177c0cc95910dccbd2c8302e4d37..90a44efd26f10666e434af589104a4afeb4bb790 100755 (executable)
@@ -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;
 
     }
 });