From c92d81005351791b41b88268c349f2f8b0825dd6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 12 Mar 2024 13:58:45 +0100 Subject: [PATCH] import: drop target parameter since disks are a separate hash now with no associated storage, we don't need this anymore Signed-off-by: Wolfgang Bumiller --- src/PVE/API2/Storage/Status.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index 01615c1..5bfb27f 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -699,11 +699,6 @@ __PACKAGE__->register_method({ description => "Volume identifier for the guest archive/entry.", type => 'string', }, - target => get_standard_option('pve-storage-id', { - description => 'The default target storage', - optional => 1, - default => 'local', - }), }, }, returns => { @@ -779,7 +774,7 @@ __PACKAGE__->register_method({ my $rpcenv = PVE::RPCEnvironment::get(); my $authuser = $rpcenv->get_user(); - my ($storeid, $volume, $target) = $param->@{qw(storage volume target)}; + my ($storeid, $volume) = $param->@{qw(storage volume)}; my $volid = "$storeid:$volume"; my $cfg = PVE::Storage::config(); @@ -788,7 +783,7 @@ __PACKAGE__->register_method({ return PVE::Tools::run_with_timeout(30, sub { my $import = PVE::Storage::get_import_metadata($cfg, $volid); - return $import->get_create_args($target); + return $import->get_create_args(); }); }});