[pmg-devel] [PATCH pmg-api 2/3] pmgdb: drop "found" prefixes for each rule and group

Stoiko Ivanov s.ivanov at proxmox.com
Thu Feb 22 22:06:19 CET 2024


conveys little information, still clutters the output.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PMG/CLI/pmgdb.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PMG/CLI/pmgdb.pm b/src/PMG/CLI/pmgdb.pm
index 87c8804..28e9583 100644
--- a/src/PMG/CLI/pmgdb.pm
+++ b/src/PMG/CLI/pmgdb.pm
@@ -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);
     };
 
-- 
2.39.2





More information about the pmg-devel mailing list