From b21cf5754615b1af8f0a4f8edaa4ab81ebaf4a86 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 8 Jan 2018 09:38:52 +0100 Subject: [PATCH] JSONSchema: add fingerprint-sha256 standard option Signed-off-by: Thomas Lamprecht --- src/PVE/JSONSchema.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.39.2