From: Thomas Lamprecht Date: Mon, 13 May 2019 11:45:42 +0000 (+0000) Subject: remove Data::Dumper usages X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=179b842e64fb489f80ad45d6e8763ab944142111;hp=1e17438e10c17c19ffa24f14167c2a9c6d8e0da5;p=pve-container.git remove Data::Dumper usages Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/API2/LXC/Config.pm b/src/PVE/API2/LXC/Config.pm index 8fcfc5f..769fc3b 100644 --- a/src/PVE/API2/LXC/Config.pm +++ b/src/PVE/API2/LXC/Config.pm @@ -20,8 +20,6 @@ use PVE::JSONSchema qw(get_standard_option); use base qw(PVE::RESTHandler); -use Data::Dumper; # fixme: remove - __PACKAGE__->register_method({ name => 'vm_config', path => '', diff --git a/src/PVE/API2/LXC/Snapshot.pm b/src/PVE/API2/LXC/Snapshot.pm index 38df2e0..8ae5688 100644 --- a/src/PVE/API2/LXC/Snapshot.pm +++ b/src/PVE/API2/LXC/Snapshot.pm @@ -99,7 +99,6 @@ __PACKAGE__->register_method({ return $res; }}); -use Data::Dumper; # fixme: remove __PACKAGE__->register_method({ name => 'snapshot', path => '', diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm index ab7af33..8807633 100755 --- a/src/PVE/CLI/pct.pm +++ b/src/PVE/CLI/pct.pm @@ -1,5 +1,5 @@ package PVE::CLI::pct; - + use strict; use warnings; @@ -20,8 +20,6 @@ use PVE::API2::LXC::Config; use PVE::API2::LXC::Status; use PVE::API2::LXC::Snapshot; -use Data::Dumper; - use base qw(PVE::CLIHandler); my $nodename = PVE::INotify::nodename(); diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index ed79611..8affe3f 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -4,7 +4,6 @@ use strict; use warnings; use File::Basename; use File::Path; -use Data::Dumper; use Fcntl; use PVE::Storage; diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm index 84bde5c..748dd5b 100644 --- a/src/PVE/LXC/Setup/CentOS.pm +++ b/src/PVE/LXC/Setup/CentOS.pm @@ -2,7 +2,7 @@ package PVE::LXC::Setup::CentOS; use strict; use warnings; -use Data::Dumper; + use PVE::Tools; use PVE::Network; use PVE::LXC; diff --git a/src/PVE/LXC/Setup/Debian.pm b/src/PVE/LXC/Setup/Debian.pm index 5ffea9e..5039889 100644 --- a/src/PVE/LXC/Setup/Debian.pm +++ b/src/PVE/LXC/Setup/Debian.pm @@ -2,7 +2,7 @@ package PVE::LXC::Setup::Debian; use strict; use warnings; -use Data::Dumper; + use PVE::Tools qw($IPV6RE); use PVE::LXC; use PVE::Network; diff --git a/src/PVE/LXC/Setup/Ubuntu.pm b/src/PVE/LXC/Setup/Ubuntu.pm index e18d396..c5bd07d 100644 --- a/src/PVE/LXC/Setup/Ubuntu.pm +++ b/src/PVE/LXC/Setup/Ubuntu.pm @@ -2,7 +2,7 @@ package PVE::LXC::Setup::Ubuntu; use strict; use warnings; -use Data::Dumper; + use PVE::Tools; use PVE::LXC; use File::Path; diff --git a/src/lxc-pve-poststop-hook b/src/lxc-pve-poststop-hook index dc7938e..00bd0b3 100755 --- a/src/lxc-pve-poststop-hook +++ b/src/lxc-pve-poststop-hook @@ -21,7 +21,6 @@ use PVE::Storage; use PVE::Storage::Plugin; use PVE::LXC; use PVE::GuestHelpers; -use Data::Dumper; use base qw(PVE::CLIHandler); diff --git a/src/lxc-pve-prestart-hook b/src/lxc-pve-prestart-hook index 6e9c589..3ff8d79 100755 --- a/src/lxc-pve-prestart-hook +++ b/src/lxc-pve-prestart-hook @@ -21,7 +21,6 @@ use PVE::CLIHandler; use PVE::Storage; use PVE::LXC; use PVE::LXC::Setup; -use Data::Dumper; use base qw(PVE::CLIHandler);