mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 05:08:00 +00:00
ceph api: added check for /etc/pve/ceph.conf to remaining/new endpoints
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
96988dfae0
commit
1aa902ae90
@ -2013,6 +2013,8 @@ __PACKAGE__->register_method({
|
||||
},
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
PVE::CephTools::check_ceph_inited();
|
||||
|
||||
my $rpcenv = PVE::RPCEnvironment::get();
|
||||
my $user = $rpcenv->get_user();
|
||||
|
@ -53,6 +53,8 @@ __PACKAGE__->register_method ({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
PVE::CephTools::check_ceph_inited();
|
||||
|
||||
my $rados = PVE::RADOS->new();
|
||||
|
||||
my $cephfs_list = $rados->mon_command({ prefix => "fs ls" });
|
||||
|
@ -64,6 +64,8 @@ __PACKAGE__->register_method ({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
PVE::CephTools::check_ceph_inited();
|
||||
|
||||
my $res = [];
|
||||
|
||||
my $cfg = PVE::CephTools::parse_ceph_config();
|
||||
|
Loading…
Reference in New Issue
Block a user