use strict;
use warnings;
+
+use Carp;
use Digest::SHA;
+
use PVE::Exception qw(raise_param_exc);
use PVE::JSONSchema qw(get_standard_option);
-use Data::Dumper;
-
my $defaultData = {
options => {},
plugins => {},
sub lookup {
my ($class, $type) = @_;
+ croak "cannot lookup undefined type!" if !defined($type);
+
my $pdata = $class->private();
my $plugin = $pdata->{plugins}->{$type};