[pve-devel] [PATCH common] JSONSchema: add fingerprint-sha256 standard option

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 20 15:13:36 CET 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/JSONSchema.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index 9c26184..2b646fd 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-Z0-9]{2}:){31}[A-Z0-9]{2}$',
+});
+
 my $format_list = {};
 
 sub register_format {
-- 
2.11.0





More information about the pve-devel mailing list