]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
api/Ceph: cleanup module usage
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Nov 2018 07:47:09 +0000 (08:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Nov 2018 10:06:12 +0000 (11:06 +0100)
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 add PVE::API2::Storage use which was missing here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph.pm

index c0b9839a044a87b1ed7c9c1e88debc2b261a02b2..f8f82136244019cad3ab01cfabedf06b6ead3c80 100644 (file)
@@ -533,32 +533,24 @@ package PVE::API2::Ceph;
 
 use strict;
 use warnings;
-use File::Basename;
+
 use File::Path;
-use POSIX qw (LONG_MAX);
-use Cwd qw(abs_path);
-use IO::Dir;
-use UUID;
 use Net::IP;
+use UUID;
 
-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::RESTHandler;
-use PVE::RPCEnvironment;
-use PVE::JSONSchema qw(get_standard_option);
-use JSON;
-use PVE::RADOS;
 use PVE::CephTools;
+use PVE::Cluster;
+use PVE::JSONSchema qw(get_standard_option);
 use PVE::Network;
+use PVE::RADOS;
+use PVE::RESTHandler;
+use PVE::RPCEnvironment;
+use PVE::Storage;
+use PVE::Tools qw(run_command file_get_contents file_set_contents);
 
-use base qw(PVE::RESTHandler);
+use PVE::API2::Storage::Config;
 
-use Data::Dumper; # fixme: remove
+use base qw(PVE::RESTHandler);
 
 my $pve_osd_default_journal_size = 1024*5;