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

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Apr 1 15:25:48 CEST 2020


On March 31, 2020 12:08 pm, Wolfgang Link wrote:
> 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
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 




More information about the pve-devel mailing list