[pve-devel] [PATCH 18/19] vm_start : remove mandatory migratedfrom for targetstorage option check

Alexandre Derumier aderumier at odiso.com
Wed Feb 22 14:33:42 CET 2017


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Qemu.pm | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index e6d46ba..49e9816 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1704,9 +1704,6 @@ __PACKAGE__->register_method({
 	raise_param_exc({ targetstorage => "Only root may use this option." })
 	    if $targetstorage && $authuser ne 'root at pam';
 
-	raise_param_exc({ targetstorage => "targetstorage can only by used with migratedfrom." })
-	    if $targetstorage && !$migratedfrom;
-
 	# read spice ticket from STDIN
 	my $spice_ticket;
 	if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) {
-- 
2.1.4




More information about the pve-devel mailing list