]> git.proxmox.com Git - pve-container.git/commitdiff
followup: remove double parenthesis and hook regex
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 2 Apr 2019 08:06:02 +0000 (10:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 2 Apr 2019 08:06:06 +0000 (10:06 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Create.pm

index 39827a66a303d7a67d3e61046ec8c38dc75677f0..c0ef1d7c78b64aa847f63bb846ff1e2ca7fcdb05 100644 (file)
@@ -184,7 +184,7 @@ sub restore_configuration {
                warn "--------------------------------\n";
                next;
            }
-           if (($unique && $key =~ /^net\d+/)) {
+           if ($unique && $key =~ /^net\d+$/) {
                my $net = PVE::LXC::Config->parse_lxc_network($oldconf->{$key});
                my $dc = PVE::Cluster::cfs_read_file('datacenter.cfg');
                $net->{hwaddr} = PVE::Tools::random_ether_addr($dc->{mac_prefix});