From a8117ff3d86ba5de9ae9e7e43d3d5514d432e9cb Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Tue, 31 Mar 2020 12:08:35 +0200 Subject: [PATCH] Register acme-plugin-format Signed-off-by: Wolfgang Link --- src/PVE/JSONSchema.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 50a0824..2802e07 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -183,6 +183,13 @@ sub parse_storage_id { return parse_id($storeid, 'storage', $noerr); } +PVE::JSONSchema::register_format('acme-plugin-id', \&parse_acme_plugin_id); +sub parse_acme_plugin_id { + my ($pluginid, $noerr) = @_; + + return parse_id($pluginid, 'ACME plugin', $noerr); +} + sub parse_id { my ($id, $type, $noerr) = @_; -- 2.39.2