From 074b2cb4fa0c8070ab2dcccbafa6a822b92d61ac Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 11 Jul 2018 12:11:40 +0200 Subject: [PATCH] remove unused Data::Dumper usages Signed-off-by: Thomas Lamprecht --- PVE/Storage/DRBDPlugin.pm | 2 +- PVE/Storage/LVMPlugin.pm | 3 ++- PVE/Storage/LunCmd/Comstar.pm | 2 +- PVE/Storage/LunCmd/Iet.pm | 2 +- PVE/Storage/LunCmd/Istgt.pm | 2 +- PVE/Storage/LvmThinPlugin.pm | 3 ++- PVE/Storage/Plugin.pm | 4 ++-- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/PVE/Storage/DRBDPlugin.pm b/PVE/Storage/DRBDPlugin.pm index 75d53aa..e0c8260 100644 --- a/PVE/Storage/DRBDPlugin.pm +++ b/PVE/Storage/DRBDPlugin.pm @@ -2,9 +2,9 @@ package PVE::Storage::DRBDPlugin; use strict; use warnings; + use IO::File; use Net::DBus; -use Data::Dumper; use PVE::Tools qw(run_command trim); use PVE::INotify; diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index 4e29617..eb376ea 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -2,8 +2,9 @@ package PVE::Storage::LVMPlugin; use strict; use warnings; -use Data::Dumper; + use IO::File; + use PVE::Tools qw(run_command trim); use PVE::Storage::Plugin; use PVE::JSONSchema qw(get_standard_option); diff --git a/PVE/Storage/LunCmd/Comstar.pm b/PVE/Storage/LunCmd/Comstar.pm index 1b079f0..527e4ba 100644 --- a/PVE/Storage/LunCmd/Comstar.pm +++ b/PVE/Storage/LunCmd/Comstar.pm @@ -2,9 +2,9 @@ package PVE::Storage::LunCmd::Comstar; use strict; use warnings; + use Digest::MD5 qw(md5_hex); use PVE::Tools qw(run_command file_read_firstline trim dir_glob_regex dir_glob_foreach); -use Data::Dumper; my @ssh_opts = ('-o', 'BatchMode=yes'); my @ssh_cmd = ('/usr/bin/ssh', @ssh_opts); diff --git a/PVE/Storage/LunCmd/Iet.pm b/PVE/Storage/LunCmd/Iet.pm index 4a8ebd5..5b09b88 100644 --- a/PVE/Storage/LunCmd/Iet.pm +++ b/PVE/Storage/LunCmd/Iet.pm @@ -15,8 +15,8 @@ package PVE::Storage::LunCmd::Iet; use strict; use warnings; + use PVE::Tools qw(run_command file_read_firstline trim dir_glob_regex dir_glob_foreach); -use Data::Dumper; sub get_base; diff --git a/PVE/Storage/LunCmd/Istgt.pm b/PVE/Storage/LunCmd/Istgt.pm index 8594f77..2f758f9 100644 --- a/PVE/Storage/LunCmd/Istgt.pm +++ b/PVE/Storage/LunCmd/Istgt.pm @@ -6,8 +6,8 @@ package PVE::Storage::LunCmd::Istgt; use strict; use warnings; + use PVE::Tools qw(run_command file_read_firstline trim dir_glob_regex dir_glob_foreach); -use Data::Dumper; my @CONFIG_FILES = ( '/usr/local/etc/istgt/istgt.conf', # FreeBSD, FreeNAS diff --git a/PVE/Storage/LvmThinPlugin.pm b/PVE/Storage/LvmThinPlugin.pm index cb2c1a2..db25ee3 100644 --- a/PVE/Storage/LvmThinPlugin.pm +++ b/PVE/Storage/LvmThinPlugin.pm @@ -2,8 +2,9 @@ package PVE::Storage::LvmThinPlugin; use strict; use warnings; -use Data::Dumper; + use IO::File; + use PVE::Tools qw(run_command trim); use PVE::Storage::Plugin; use PVE::Storage::LVMPlugin; diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 43f3bdc..7db3a95 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -2,14 +2,14 @@ package PVE::Storage::Plugin; use strict; use warnings; + use File::chdir; use File::Path; + use PVE::Tools qw(run_command); use PVE::JSONSchema qw(get_standard_option); use PVE::Cluster qw(cfs_register_file); -use Data::Dumper; - use base qw(PVE::SectionConfig); our @COMMON_TAR_FLAGS = qw( -- 2.39.2