public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH pmg-api] pmgdb: add object type text to output
@ 2024-02-09 13:37 Dominik Csapak
  2024-02-22 20:56 ` [pmg-devel] applied: " Stoiko Ivanov
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2024-02-09 13:37 UTC (permalink / raw)
  To: pmg-devel

this makes it easier to differntiate between e.g.
a domain entry 'foo.com'
and a regex entry 'foo.com'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/PMG/CLI/pmgdb.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PMG/CLI/pmgdb.pm b/src/PMG/CLI/pmgdb.pm
index 8368af8..6310112 100644
--- a/src/PMG/CLI/pmgdb.pm
+++ b/src/PMG/CLI/pmgdb.pm
@@ -32,8 +32,9 @@ sub print_objects {
     my $objects = $ruledb->load_group_objects ($og->{id});
 
     foreach my $obj (@$objects) {
+	my $type_text = $obj->otype_text();
 	my $desc = encode('UTF-8', $obj->short_desc());
-	print "    OBJECT $obj->{id}: $desc\n";
+	print "    OBJECT $type_text $obj->{id}: $desc\n";
     }
 }
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pmg-devel] applied: [PATCH pmg-api] pmgdb: add object type text to output
  2024-02-09 13:37 [pmg-devel] [PATCH pmg-api] pmgdb: add object type text to output Dominik Csapak
@ 2024-02-22 20:56 ` Stoiko Ivanov
  0 siblings, 0 replies; 2+ messages in thread
From: Stoiko Ivanov @ 2024-02-22 20:56 UTC (permalink / raw)
  To: Dominik Csapak; +Cc: pmg-devel

thanks for the patch!


On Fri,  9 Feb 2024 14:37:00 +0100
Dominik Csapak <d.csapak@proxmox.com> wrote:

> this makes it easier to differntiate between e.g.
> a domain entry 'foo.com'
> and a regex entry 'foo.com'
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  src/PMG/CLI/pmgdb.pm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/PMG/CLI/pmgdb.pm b/src/PMG/CLI/pmgdb.pm
> index 8368af8..6310112 100644
> --- a/src/PMG/CLI/pmgdb.pm
> +++ b/src/PMG/CLI/pmgdb.pm
> @@ -32,8 +32,9 @@ sub print_objects {
>      my $objects = $ruledb->load_group_objects ($og->{id});
>  
>      foreach my $obj (@$objects) {
> +	my $type_text = $obj->otype_text();
>  	my $desc = encode('UTF-8', $obj->short_desc());
> -	print "    OBJECT $obj->{id}: $desc\n";
> +	print "    OBJECT $type_text $obj->{id}: $desc\n";
>      }
>  }
>  





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-22 20:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09 13:37 [pmg-devel] [PATCH pmg-api] pmgdb: add object type text to output Dominik Csapak
2024-02-22 20:56 ` [pmg-devel] applied: " Stoiko Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal