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

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Mar 15 14:06:34 CET 2019


On 3/15/19 10:52 AM, Tim Marx wrote:
> 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' });
> 

applied, thanks! Added slightly to the commit message for future reference.



More information about the pve-devel mailing list