import: return skipped/ignored volumes in get_create_args
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
e72845efbf
commit
763a2292f3
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user