diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-17 14:35:11 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-17 14:53:19 +0300 |
commit | 66bc2949f735c3808704763e0648708fe43560c4 (patch) | |
tree | 7a26ba5d934b92bcd451a22ef15b885c57424110 | |
parent | 832015e23b3260bec824343d4855801c7af5b642 (diff) | |
download | vmdb2-66bc2949f735c3808704763e0648708fe43560c4.tar.gz |
fix: make lvcreate not ask questions
The -qq option to lvcreate tells it to be quiet and to assume the
answer to any question it may have is "no".
Sponsored-by: author
-rw-r--r-- | vmdb/plugins/lvcreate_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdb/plugins/lvcreate_plugin.py b/vmdb/plugins/lvcreate_plugin.py index 8eee9f4..5e65b66 100644 --- a/vmdb/plugins/lvcreate_plugin.py +++ b/vmdb/plugins/lvcreate_plugin.py @@ -35,7 +35,7 @@ class LvcreateStepRunner(vmdb.StepRunnerInterface): lvname = values["name"] size = values["size"] - vmdb.runcmd(["lvcreate", "--name", lvname, "--size", size, vgname]) + vmdb.runcmd(["lvcreate", "-qq", "--name", lvname, "--size", size, vgname]) lvdev = "/dev/{}/{}".format(vgname, lvname) assert os.path.exists(lvdev) |