Allow specifying targetstorage for offline migration

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-04-08 11:25:08 +02:00 committed by Fabian Grünbichler
parent 37666e4caa
commit bcd5401acc

View File

@ -3455,9 +3455,6 @@ __PACKAGE__->register_method({
$param->{online} = 0;
}
raise_param_exc({ targetstorage => "Live storage migration can only be done online." })
if !$param->{online} && $param->{targetstorage};
my $storecfg = PVE::Storage::config();
if (my $targetstorage = $param->{targetstorage}) {