From 2f4c7c3ff1aabde21628e7541f79f7cc7e753199 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 20 Nov 2021 17:19:06 -0700 Subject: LXC:LXC-LS: always pass -1 command line argument With most connection types stdout is not a tty and so we get one entry per line anyway. However, unless we explicitly pass -1, lxc-ls(1) can add unwanted trailing whitespace to these lines. Signed-off-by: Sean Whitton --- src/property/lxc.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/property/lxc.lisp b/src/property/lxc.lisp index 5027753..c55cd0b 100644 --- a/src/property/lxc.lisp +++ b/src/property/lxc.lisp @@ -318,7 +318,7 @@ implications." (defun lxc-ls (&optional owner &rest args) "Return the lines of output from lxc-ls(1) called with ARGS and for OWNER." - (lines (apply #'lxc-cmd owner "lxc-ls" args))) + (lines (apply #'lxc-cmd owner "lxc-ls" "-1" args))) (defun user-container-active-p (host &optional owner) (and (not (service:no-services-p)) -- cgit v1.2.3