import: return skipped/ignored volumes in get_create_args

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2024-03-06 15:14:05 +01:00
committed by Thomas Lamprecht
parent e72845efbf
commit 763a2292f3
2 changed files with 15 additions and 8 deletions

View File

@ -736,15 +736,10 @@ __PACKAGE__->register_method({
PVE::Storage::check_volume_access($rpcenv, $authuser, $cfg, undef, $volid);
my $create_args = PVE::Tools::run_with_timeout(30, sub {
return PVE::Tools::run_with_timeout(30, sub {
my $import = PVE::Storage::get_import_metadata($cfg, $volid);
return $import->get_create_args($target);
});
return {
type => 'vm', # currently we only have this
'create-args' => $create_args,
};
}});
1;