applied

On Wed, Jul 26, 2017 at 04:46:16PM +0200, Dominik Csapak wrote:
> since ids can contain '-', we have to include them in the pattern
> for the service names
> 
> Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
> ---
>  PVE/API2/Ceph.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
> index c8ccab8a..eb8f14f3 100644
> --- a/PVE/API2/Ceph.pm
> +++ b/PVE/API2/Ceph.pm
> @@ -1244,7 +1244,7 @@ __PACKAGE__->register_method ({
>               description => 'Ceph service name.',
>               type => 'string',
>               optional => 1,
> -             pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9]{1,32}',
> +             pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
>           },
>       },
>      },
> @@ -1294,7 +1294,7 @@ __PACKAGE__->register_method ({
>               description => 'Ceph service name.',
>               type => 'string',
>               optional => 1,
> -             pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9]{1,32}',
> +             pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
>           },
>       },
>      },
> -- 
> 2.11.0

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to