[pve-devel] [PATCH manager 13/20] ceph: mds: adapt creation api path to the mon/mgr scheme

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 5 07:14:42 CEST 2019


On 6/4/19 2:47 PM, Dominik Csapak wrote:
> so no name in the path
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  PVE/API2/Ceph/MDS.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/API2/Ceph/MDS.pm b/PVE/API2/Ceph/MDS.pm
> index 532eb404..5aa59c0f 100644
> --- a/PVE/API2/Ceph/MDS.pm
> +++ b/PVE/API2/Ceph/MDS.pm
> @@ -88,7 +88,7 @@ __PACKAGE__->register_method ({
>  
>  __PACKAGE__->register_method ({
>      name => 'createmds',
> -    path => '{name}',
> +    path => '',
>      method => 'POST',
>      description => "Create Ceph Metadata Server (MDS)",
>      proxyto => 'node',
> 

I do not really like that, I rather would have the other old
call convert to the templated path interface, IMO, nicer REST
interface...




More information about the pve-devel mailing list