[pve-devel] applied: [pve-common 5/7] PVE::Certificate - set renderers for unix epoch and 'san'

Dietmar Maurer dietmar at proxmox.com
Thu Jul 26 13:04:46 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 src/PVE/Certificate.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/PVE/Certificate.pm b/src/PVE/Certificate.pm
index b0b9bbf..691e70b 100644
--- a/src/PVE/Certificate.pm
+++ b/src/PVE/Certificate.pm
@@ -54,17 +54,20 @@ PVE::JSONSchema::register_standard_option('pve-certificate-info', {
 	notbefore => {
 	    type => 'integer',
 	    description => 'Certificate\'s notBefore timestamp (UNIX epoch).',
+	    renderer => 'timestamp',
 	    optional => 1,
 	},
 	notafter => {
 	    type => 'integer',
 	    description => 'Certificate\'s notAfter timestamp (UNIX epoch).',
+	    renderer => 'timestamp',
 	    optional => 1,
 	},
 	san => {
 	    type => 'array',
 	    description => 'List of Certificate\'s SubjectAlternativeName entries.',
 	    optional => 1,
+	    renderer => 'yaml',
 	    items => {
 		type => 'string',
 	    },
-- 
2.11.0




More information about the pve-devel mailing list