[pve-devel] [PATCH manager] check for ceph inited at status api

Tim Marx t.marx at proxmox.com
Fri Mar 15 10:52:02 CET 2019


As this is now the default behavior in all other ceph api endpoints,
I adapted the status api correspondingly.

Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 PVE/API2/Ceph.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 8304f4d0..47a42f4a 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -526,7 +526,7 @@ __PACKAGE__->register_method ({
     code => sub {
 	my ($param) = @_;
 
-	PVE::Ceph::Tools::check_ceph_enabled();
+	PVE::Ceph::Tools::check_ceph_inited();
 
 	my $rados = PVE::RADOS->new();
 	my $status = $rados->mon_command({ prefix => 'status' });
-- 
2.11.0



More information about the pve-devel mailing list