[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/4] Pass '--force' to vgremove to avoid interactive prompts. (#563873)



---
 storage/devicelibs/lvm.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py
index 6dd2cd6..fd74f56 100644
--- a/storage/devicelibs/lvm.py
+++ b/storage/devicelibs/lvm.py
@@ -255,7 +255,7 @@ def vgcreate(vg_name, pv_list, pe_size, progress=None):
         raise LVMError("vgcreate failed for %s: %s" % (vg_name, msg))
 
 def vgremove(vg_name):
-    args = ["vgremove"] + \
+    args = ["vgremove", "--force"] + \
             config_args +\
             [vg_name]
 
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]