summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2019-10-10 16:49:09 -0500
committerTony Asleson <tasleson@redhat.com>2019-10-30 10:38:40 -0500
commitf56b21ae2c7667d69c050653d527f9071ef83ad5 (patch)
tree499d25a9986a204aa316d2905763e0c7a3223337
parent9e15c83673436342a60b8f982e521eb32d972a0c (diff)
downloadlvm2-f56b21ae2c7667d69c050653d527f9071ef83ad5.tar.gz
lvmdbusd: Bug fix for activate/deactivate
Prevent the daemon from stalling when it gets stuck on a y/n prompt.
-rw-r--r--daemons/lvmdbusd/cmdhandler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py
index 67d432102..e0bb10563 100644
--- a/daemons/lvmdbusd/cmdhandler.py
+++ b/daemons/lvmdbusd/cmdhandler.py
@@ -738,6 +738,7 @@ def activate_deactivate(op, name, activate, control_flags, options):
op += 'n'
cmd.append(op)
+ cmd.append("-y")
cmd.append(name)
return call(cmd)