]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: style fix, trailing comma and closing brace on new line
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jun 2020 13:39:42 +0000 (15:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jun 2020 13:39:46 +0000 (15:39 +0200)
also sort the hash definition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump.pm

index 2f47760669b2a327224608057bce4500ea4f63e1..b45044ebf2eebc9db260204cc62fd38fce21db66 100644 (file)
@@ -1057,10 +1057,11 @@ sub exec_backup {
        my $plugin = $vzdump_plugins->{$guest_type};
        next if !$rpcenv->check($authuser, "/vms/$vmid", [ 'VM.Backup' ], $opts->{all});
        push @$tasklist, {
-           vmid => $vmid,
-           state => 'todo',
+           mode => $opts->{mode},
            plugin => $plugin,
-           mode => $opts->{mode} };
+           state => 'todo',
+           vmid => $vmid,
+       };
     }
 
     # Use in-memory files for the outer hook logs to pass them to sendmail.