]> git.proxmox.com Git - pve-guest-common.git/commitdiff
config: return early if $opt is not partial fast pluggable
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 08:43:56 +0000 (09:43 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 08:43:56 +0000 (09:43 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/AbstractConfig.pm

index c517c61d350ad6e997fae6179b8731245cb524e8..1d1ec813121dff59aa2de9cb9b3c7defd58c1ce8 100644 (file)
@@ -178,6 +178,8 @@ sub partial_fast_plug {
     my ($class, $conf, $opt) = @_;
 
     my $partial_fast_plug_option = $class->get_partial_fast_plug_option();
+    return 0 if !$partial_fast_plug_option->{$opt};
+
     my $format = $partial_fast_plug_option->{$opt}->{fmt};
     my $fast_pluggable = $partial_fast_plug_option->{$opt}->{properties};