]> git.proxmox.com Git - qemu-server.git/commitdiff
code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Apr 2019 15:37:18 +0000 (17:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Apr 2019 15:37:18 +0000 (17:37 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index 638455e2f6c3100d45346ec14bd721921d9a1d2a..d8c9726620bb1a71c8417566a3ba94fa076a71cc 100644 (file)
@@ -2854,8 +2854,8 @@ __PACKAGE__->register_method({
                        my $skipcomplete = ($total_jobs != $i); # finish after last drive
 
                        my $src_sid = PVE::Storage::parse_volume_id($drive->{file});
-                       my $storage_list = [$src_sid];
-                       push @$storage_list, $storage if (defined($storage));
+                       my $storage_list = [ $src_sid ];
+                       push @$storage_list, $storage if defined($storage);
                        my $clonelimit = PVE::Storage::get_bandwidth_limit('clone', $storage_list, $bwlimit);
 
                        my $newdrive = PVE::QemuServer::clone_disk($storecfg, $vmid, $running, $opt, $drive, $snapname,