import: rework plugin api to not need a blessed object
does not really make sense, and if the plugin wants that, it can still be done, like we do here for the ESXiPlugin Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
c92d810053
commit
4f50a578f4
@ -782,8 +782,7 @@ __PACKAGE__->register_method({
|
||||
PVE::Storage::check_volume_access($rpcenv, $authuser, $cfg, undef, $volid);
|
||||
|
||||
return PVE::Tools::run_with_timeout(30, sub {
|
||||
my $import = PVE::Storage::get_import_metadata($cfg, $volid);
|
||||
return $import->get_create_args();
|
||||
return PVE::Storage::get_import_metadata($cfg, $volid);
|
||||
});
|
||||
}});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user