]> git.proxmox.com Git - pve-storage.git/commitdiff
lvm: vg create: followup for bogus warnings
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Dec 2019 14:15:52 +0000 (15:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Dec 2019 14:15:52 +0000 (15:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/LVMPlugin.pm

index bc01be80a5014da51238ec7d1298cf66a2254ef6..c652e2a23b6e1feb9f141f0a41f61e10001229cc 100644 (file)
@@ -94,7 +94,7 @@ sub lvm_create_volume_group {
     $cmd = ['/sbin/vgcreate', $vgname, $device];
     # push @$cmd, '-c', 'y' if $shared; # we do not use this yet
 
-    run_command($cmd, errmsg => "vgcreate $vgname $device error", errfunc => $ignore_no_medium_warnings);
+    run_command($cmd, errmsg => "vgcreate $vgname $device error", errfunc => $ignore_no_medium_warnings, outfunc => $ignore_no_medium_warnings);
 }
 
 sub lvm_vgs {