]> git.proxmox.com Git - pve-container.git/commitdiff
followup: iterate over pending changes sorted
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Oct 2019 11:22:33 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Oct 2019 11:22:33 +0000 (13:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Config.pm

index 1bd30879f4c62e1fd687f7a25a506034fbe13bb3..b744d4f133fa878ffce197549f6aa22a5e314333 100644 (file)
@@ -1166,7 +1166,7 @@ sub vmconfig_hotplug_pending {
 
     my $pending_delete_hash = $class->parse_pending_delete($conf->{pending}->{delete});
     # FIXME: $force deletion is not implemented for CTs
-    foreach my $opt (keys %$pending_delete_hash) {
+    foreach my $opt (sort keys %$pending_delete_hash) {
        next if $selection && !$selection->{$opt};
        eval {
            if ($LXC_FASTPLUG_OPTIONS->{$opt}) {
@@ -1250,7 +1250,7 @@ sub vmconfig_apply_pending {
 
     my $pending_delete_hash = $class->parse_pending_delete($conf->{pending}->{delete});
     # FIXME: $force deletion is not implemented for CTs
-    foreach my $opt (keys %$pending_delete_hash) {
+    foreach my $opt (sort keys %$pending_delete_hash) {
        next if $selection && !$selection->{$opt};
        $class->cleanup_pending($conf);
        eval {