[pve-devel] [PATCH manager v7 02/14] api: /version: add 'tag-style'

Dominik Csapak d.csapak at proxmox.com
Tue Jun 21 11:20:00 CEST 2022


to be able to use it in the gui directly after login

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2.pm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/PVE/API2.pm b/PVE/API2.pm
index a4256160..26fcc02e 100644
--- a/PVE/API2.pm
+++ b/PVE/API2.pm
@@ -111,6 +111,11 @@ __PACKAGE__->register_method ({
 		optional => 1,
 		description => 'The default console viewer to use.',
 	    },
+	    'tag-style' => {
+		type => 'string',
+		optional => 1,
+		description => 'Cluster wide tag style overrides',
+	    },
 	},
     },
     code => sub {
@@ -119,7 +124,7 @@ __PACKAGE__->register_method ({
 	my $res = {};
 
 	my $datacenter_confg = eval { PVE::Cluster::cfs_read_file('datacenter.cfg') } // {};
-	for my $k (qw(console)) {
+	for my $k (qw(console tag-style)) {
 	    $res->{$k} = $datacenter_confg->{$k} if exists $datacenter_confg->{$k};
 	}
 
-- 
2.30.2






More information about the pve-devel mailing list