aboutsummaryrefslogtreecommitdiff
path: root/src/property
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-11-20 17:19:06 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-28 14:54:22 -0700
commit2f4c7c3ff1aabde21628e7541f79f7cc7e753199 (patch)
treea796043e2aa18bae8d42cfb209362110e3aa5099 /src/property
parent4342650ea28bffbcd41905b18350c4b0d478d774 (diff)
downloadconsfigurator-2f4c7c3ff1aabde21628e7541f79f7cc7e753199.tar.gz
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 <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property')
-rw-r--r--src/property/lxc.lisp2
1 files changed, 1 insertions, 1 deletions
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))