]> git.proxmox.com Git - pmg-api.git/blobdiff - PMG/RuleDB/Remove.pm
Add default rulename of 'unknown' to Actions
[pmg-api.git] / PMG / RuleDB / Remove.pm
index 551fb97227ccf4d50ace24feb6505508bfef6a62..e6105325339600d80f20185933bd575c7a9eea11 100644 (file)
@@ -171,7 +171,7 @@ sub execute {
     my ($self, $queue, $ruledb, $mod_group, $targets,
        $msginfo, $vars, $marks) = @_;
 
-    my $rulename = $vars->{RULE};
+    my $rulename = $vars->{RULE} // 'unknown';
 
     if (!$self->{all} && ($#$marks == -1)) {
        # no marks