]> git.proxmox.com Git - pve-container.git/commitdiff
update_lxc_config: sort network devices for consistency
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 28 Jul 2016 14:23:18 +0000 (16:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 5 Aug 2016 08:45:39 +0000 (10:45 +0200)
src/PVE/LXC.pm

index 40475d0cc4ce8a9baefdd6f9a06da58c2337e14c..35ce7962759810f5b976ba93d60ec89665c67cda 100644 (file)
@@ -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});