X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSectionConfig.pm;h=6f85b228b81ec82c77d64fbbbc8f0197e5274e01;hp=95e166abce88d8101368ee93213b7dda33532525;hb=ebd2b0aca54022f80abfbea0167d1ac2143f4771;hpb=0cb4d663f54896ba78a8374a9f201d461d0f2449 diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index 95e166a..6f85b22 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -26,6 +26,9 @@ sub register { my $type = $class->type(); my $pdata = $class->private(); + die "duplicate plugin registration (type = $type)" + if defined($pdata->{plugins}->{$type}); + my $plugindata = $class->plugindata(); $pdata->{plugindata}->{$type} = $plugindata; $pdata->{plugins}->{$type} = $class;