From: Thomas Lamprecht Date: Mon, 8 Jan 2018 08:38:52 +0000 (+0100) Subject: JSONSchema: add fingerprint-sha256 standard option X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=b21cf5754615b1af8f0a4f8edaa4ab81ebaf4a86;ds=sidebyside JSONSchema: add fingerprint-sha256 standard option Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 9c26184..c09a9f4 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -99,6 +99,12 @@ register_standard_option('extra-args', { optional => 1 }); +register_standard_option('fingerprint-sha256', { + description => "Certificate SHA 256 fingerprint.", + type => 'string', + pattern => '([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}', +}); + my $format_list = {}; sub register_format {