mirror of
https://git.proxmox.com/git/pve-manager
synced 2026-03-29 01:30:15 +00:00
api/CephOSD: cleanup and sort module usage
most of this was imported by just copying without verifying if all is actually required. Some lost its purpose as we re-used more from our existing module code base (e.g., pve-common) but wasn't actually removed. As this file includes two perl modules you need to take a bit caution when looking at this, as some things are used in one module but not the other - simple grep'ing at this may give false positives. Also include the missing IO::File use. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c5e224fc73
commit
d4d2e789b8
@ -2,28 +2,21 @@ package PVE::API2::CephOSD;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd qw(abs_path);
|
||||
use Net::IP;
|
||||
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::Tools qw(extract_param run_command file_get_contents file_read_firstline dir_glob_regex dir_glob_foreach);
|
||||
use PVE::Exception qw(raise raise_param_exc);
|
||||
use PVE::INotify;
|
||||
use PVE::Cluster qw(cfs_lock_file cfs_read_file cfs_write_file);
|
||||
use PVE::AccessControl;
|
||||
use PVE::Storage;
|
||||
use PVE::API2::Storage::Config;
|
||||
use PVE::RESTHandler;
|
||||
use PVE::RPCEnvironment;
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
use PVE::RADOS;
|
||||
use Cwd qw(abs_path);
|
||||
use IO::File;
|
||||
|
||||
use PVE::CephTools;
|
||||
use PVE::Diskmanage;
|
||||
use PVE::Exception qw(raise_param_exc);
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
use PVE::RADOS;
|
||||
use PVE::RESTHandler;
|
||||
use PVE::RPCEnvironment;
|
||||
use PVE::Tools qw(run_command);
|
||||
|
||||
use base qw(PVE::RESTHandler);
|
||||
|
||||
use Data::Dumper; # fixme: remove
|
||||
|
||||
my $get_osd_status = sub {
|
||||
my ($rados, $osdid) = @_;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user