]> git.proxmox.com Git - pve-container.git/commitdiff
cleanup: remove unused variables
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 20 Jul 2018 06:39:44 +0000 (08:39 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 20 Jul 2018 06:48:19 +0000 (08:48 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Setup/Base.pm
src/PVE/LXC/Setup/CentOS.pm

index 62e37b9386c2bf032f9712b096bcd081c110829f..0d6a79635796b9c719edc7e944e118365e2a2235 100644 (file)
@@ -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 = '';
index 94121ed6d80e30c4aee9a833431a2d4a9120527c..2b7f90c21e792ca420612ab547d74d6445396e6d 100644 (file)
@@ -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;