From 84f1be680846f4fcd301c7c395b721ec3cd25c80 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 20 Jul 2018 08:39:44 +0200 Subject: [PATCH] cleanup: remove unused variables Signed-off-by: Wolfgang Bumiller --- src/PVE/LXC/Setup/Base.pm | 2 -- src/PVE/LXC/Setup/CentOS.pm | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm index 62e37b9..0d6a796 100644 --- a/src/PVE/LXC/Setup/Base.pm +++ b/src/PVE/LXC/Setup/Base.pm @@ -54,8 +54,6 @@ sub lookup_dns_conf { sub update_etc_hosts { my ($self, $hostip, $oldname, $newname, $searchdomains) = @_; - my $done = 0; - my $namepart = ($newname =~ s/\..*$//r); my $all_names = ''; diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm index 94121ed..2b7f90c 100644 --- a/src/PVE/LXC/Setup/CentOS.pm +++ b/src/PVE/LXC/Setup/CentOS.pm @@ -137,8 +137,6 @@ sub set_hostname { } } - my $hosts_fn = "/etc/hosts"; - my ($ipv4, $ipv6) = PVE::LXC::get_primary_ips($conf); my $hostip = $ipv4 || $ipv6; -- 2.39.2