From 56b03211e6c9f40ba556fd97acb7b643ecf09e78 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Wed, 21 Dec 2022 14:30:25 +0100 Subject: [PATCH] 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 [ T: note which items where missing and reword slightly ] Signed-off-by: Thomas Lamprecht --- PVE/API2/Ceph.pm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm index 0490f4a2..55220324 100644 --- a/PVE/API2/Ceph.pm +++ b/PVE/API2/Ceph.pm @@ -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;