From a91fa58ebdd9bc9df7cdad61685296eaf1afd216 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 5 Jun 2019 11:52:32 +0200 Subject: [PATCH] api: mgr create: code cleanup, redue heavy empty line usage Signed-off-by: Thomas Lamprecht --- PVE/API2/Ceph/MGR.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Ceph/MGR.pm b/PVE/API2/Ceph/MGR.pm index c0e56085..14dbff5c 100644 --- a/PVE/API2/Ceph/MGR.pm +++ b/PVE/API2/Ceph/MGR.pm @@ -107,11 +107,9 @@ __PACKAGE__->register_method ({ my ($param) = @_; PVE::Ceph::Tools::check_ceph_installed('ceph_mgr'); - PVE::Ceph::Tools::check_ceph_inited(); my $rpcenv = PVE::RPCEnvironment::get(); - my $authuser = $rpcenv->get_user(); my $mgrid = $param->{id} // $param->{node}; @@ -119,7 +117,8 @@ __PACKAGE__->register_method ({ my $worker = sub { my $upid = shift; - my $rados = PVE::RADOS->new(timeout => PVE::Ceph::Tools::get_config('long_rados_timeout')); + my $rados_timeout = PVE::Ceph::Tools::get_config('long_rados_timeout'); + my $rados = PVE::RADOS->new(timeout => $rados_timeout); PVE::Ceph::Services::create_mgr($mgrid, $rados); };