mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 13:51:32 +00:00
api: mgr create: code cleanup, redue heavy empty line usage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a435eaf9a0
commit
a91fa58ebd
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user