From: Wolfgang Bumiller Date: Thu, 28 Jul 2016 14:23:18 +0000 (+0200) Subject: update_lxc_config: sort network devices for consistency X-Git-Url: https://git.proxmox.com/?p=pve-container.git;a=commitdiff_plain;h=e756bdd60ca84ce4fea4dc5a93298d4150fc8831 update_lxc_config: sort network devices for consistency --- diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 40475d0..35ce796 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -412,7 +412,7 @@ sub update_lxc_config { $raw .= "lxc.rootfs = $dir/rootfs\n"; my $netcount = 0; - foreach my $k (keys %$conf) { + foreach my $k (sort keys %$conf) { next if $k !~ m/^net(\d+)$/; my $ind = $1; my $d = PVE::LXC::Config->parse_lxc_network($conf->{$k});