1
0
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:
Jonathan Brassow 2014-06-05 22:45:19 -05:00
parent 1f2aedb190
commit c0f9c79ae8

View File

@ -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"