api: ceph: sort and update index sub-directory list

The 'cmd-safety', 'configdb' and 'mgr' items were missing, and while
directly calling the API endpoints worked, the api-viewer and pvesh
where partially broken here.

Sort the whole list alphabetically will make it easier to track in
the future

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
 [ T: note which items where missing and reword slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Aaron Lauterer 2022-12-21 14:30:25 +01:00 committed by Thomas Lamprecht
parent f18b7ddd36
commit 56b03211e6

View File

@ -87,20 +87,23 @@ __PACKAGE__->register_method ({
my ($param) = @_;
my $result = [
{ name => 'cmd-safety' },
{ name => 'config' },
{ name => 'configdb' },
{ name => 'crush' },
{ name => 'fs' },
{ name => 'init' },
{ name => 'log' },
{ name => 'mds' },
{ name => 'mgr' },
{ name => 'mon' },
{ name => 'osd' },
{ name => 'pools' },
{ name => 'fs' },
{ name => 'mds' },
{ name => 'stop' },
{ name => 'start' },
{ name => 'restart' },
{ name => 'status' },
{ name => 'crush' },
{ name => 'config' },
{ name => 'log' },
{ name => 'rules' },
{ name => 'start' },
{ name => 'status' },
{ name => 'stop' },
];
return $result;