[pve-devel] [Patch V2 common 3/3] Register acme-plugin-format

Wolfgang Link w.link at proxmox.com
Tue Mar 31 12:08:35 CEST 2020


Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 src/PVE/JSONSchema.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index 3eb38eb..0c655bc 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, $msg, $noerr) = @_;
 
-- 
2.20.1





More information about the pve-devel mailing list