1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmdbusd: Handle 'exit' for lvm_shell_proxy

Useful for testing `exit_shell` when running interactively.
This commit is contained in:
Tony Asleson 2022-09-06 16:24:20 -05:00
parent b3d13c50d7
commit 9fc24b1d3b

View File

@ -280,6 +280,9 @@ if __name__ == "__main__":
while in_line:
in_line = input("lvm> ")
if in_line:
if in_line == "exit":
shell.exit_shell()
sys.exit(0)
start = time.time()
ret, out, err = shell.call_lvm(in_line.split())
end = time.time()