summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2022-09-08 15:41:20 -0500
committerTony Asleson <tasleson@redhat.com>2022-09-16 10:49:37 -0500
commit8e1e40c499a0e46a0a15b9a6b470adb8fbbbbf4f (patch)
treec5b163c9aec39a91c93f751cd8626d50a4d35800 /daemons
parent2c5762038a7d2877dca91593ca212e0e36802dc1 (diff)
downloadlvm2-8e1e40c499a0e46a0a15b9a6b470adb8fbbbbf4f.tar.gz
lvmdbusd: Raise IOError instead of ignoring
We end up in a bad state if we simply eat IOErrors here. Exit the lvmshell process and raise the IOError.
Diffstat (limited to 'daemons')
-rwxr-xr-xdaemons/lvmdbusd/lvm_shell_proxy.py.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/lvmdbusd/lvm_shell_proxy.py.in b/daemons/lvmdbusd/lvm_shell_proxy.py.in
index 244fe93f5..ed2c7bc9e 100755
--- a/daemons/lvmdbusd/lvm_shell_proxy.py.in
+++ b/daemons/lvmdbusd/lvm_shell_proxy.py.in
@@ -108,7 +108,8 @@ class LVMShellProxy(object):
except IOError as ioe:
log_debug(str(ioe))
- pass
+ self.exit_shell()
+ raise ioe
if keep_reading and run.value == 0:
# We didn't complete as we are shutting down