]> git.proxmox.com Git - pmg-api.git/commitdiff
pmgdb: drop "found" prefixes for each rule and group
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 22 Feb 2024 21:06:19 +0000 (22:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 10:53:51 +0000 (11:53 +0100)
conveys little information, still clutters the output.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by:  Friedrich Weber <f.weber@proxmox.com>
Tested-by:  Alexander Zeidler <a.zeidler@proxmox.com>
src/PMG/CLI/pmgdb.pm

index 87c8804ef10925cd397665e7411fd176d28e342e..28e9583de3173cf829c77e162db6759227f54b63 100644 (file)
@@ -52,7 +52,7 @@ sub print_rule {
     my $dir = $direction->{$rule->{direction}};
     my $rulename = encode('UTF-8', $rule->{name});
 
-    print "Found RULE $rule->{id} (prio: $rule->{priority}, $dir, $active): $rulename\n";
+    print "RULE $rule->{id} (prio: $rule->{priority}, $dir, $active): $rulename\n";
 
     my $print_group = sub {
        my ($type, $og, $print_mode) = @_;
@@ -63,7 +63,7 @@ sub print_rule {
            my $invert = $og->{invert} // 0;
            $mode = " (and=$and, invert=$invert)";
        }
-       print "  FOUND $type GROUP $og->{id}${mode}: $oname\n";
+       print "  $type group $og->{id}${mode}: $oname\n";
        print_objects($ruledb, $og);
     };