]> git.proxmox.com Git - pmg-api.git/blobdiff - PMG/RuleDB/Block.pm
Add default rulename of 'unknown' to Actions
[pmg-api.git] / PMG / RuleDB / Block.pm
index c7c640efe3253f3ee5e6e5c33f8fc21371d60583..c758787e58aff0b3fac21e928435269123aefda6 100644 (file)
@@ -89,7 +89,7 @@ sub execute {
     my ($self, $queue, $ruledb, $mod_group, $targets, 
        $msginfo, $vars, $marks) = @_;
 
-    my $rulename = $vars->{RULE};
+    my $rulename = $vars->{RULE} // 'unknown';
 
     if ($msginfo->{testmode}) {
        my $fh = $msginfo->{test_fh};