]> git.proxmox.com Git - pve-manager.git/commitdiff
api: ceph: sort and update index sub-directory list
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 21 Dec 2022 13:30:25 +0000 (14:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Dec 2022 13:55:14 +0000 (14:55 +0100)
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>
PVE/API2/Ceph.pm

index 0490f4a2dfa2a3307849bd323dcb0c7f44d63343..55220324884c247e649dff6854e9a2063bb2b618 100644 (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;