]> git.proxmox.com Git - pve-manager.git/commitdiff
follow up: cleanup long line
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Oct 2018 11:22:58 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Oct 2018 11:24:11 +0000 (13:24 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph.pm

index ac277fdfd1b3b0b04b37c36c2a173c59dfbd9757..f3a6d19ea2d138005b84b06f2f813cd7c3c3d181 100644 (file)
@@ -437,7 +437,6 @@ __PACKAGE__->register_method ({
                }
            }
 
-
            print "Unmount OSD $osdsection from  $mountpoint\n";
            eval { run_command(['/bin/umount', $mountpoint]); };
            if (my $err = $@) {
@@ -447,9 +446,10 @@ __PACKAGE__->register_method ({
                foreach my $part (@$partitions_to_remove) {
                    $remove_partition->($part);
                }
+               my @wipe_cmd = qw(/bin/dd if=/dev/zero bs=1M count=200 conv=fdatasync);
                foreach my $devpath (keys %$disks_to_wipe) {
                    print "wipe disk: $devpath\n";
-                   eval { run_command(['/bin/dd', 'if=/dev/zero', "of=${devpath}", 'bs=1M', 'count=200', 'conv=fdatasync']); };
+                   eval { run_command([@wipe_cmd, "of=${devpath}"]) };
                    warn $@ if $@;
                }
            }