mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-21 22:04:19 +03:00
vgchange: With '--yes', don't prompt the user
If the user supplies a '--yes' argument, then don't bother them with a question to confirm whether to change the cluster attribute (even if clvmd isn't running).
This commit is contained in:
parent
1f2aedb190
commit
c0f9c79ae8
@ -317,7 +317,7 @@ static int _vgchange_clustered(struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (clustered) {
|
||||
if (clustered && !arg_count(cmd, yes_ARG)) {
|
||||
if (!dm_daemon_is_running(CLVMD_PIDFILE)) {
|
||||
if (yes_no_prompt("LVM cluster daemon (clvmd) is not"
|
||||
" running.\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user