[pve-devel] applied: [PATCH manager] add missing '-' to service name pattern

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jul 26 16:54:14 CEST 2017


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.csapak at 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




More information about the pve-devel mailing list