]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephadm/test_cephadm: add `--no-pager`
authorMichael Fritch <mfritch@suse.com>
Mon, 22 Nov 2021 19:15:18 +0000 (12:15 -0700)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 13 Sep 2022 16:17:20 +0000 (12:17 -0400)
avoid user interaction with the systemd pager

Signed-off-by: Michael Fritch <mfritch@suse.com>
qa/workunits/cephadm/test_cephadm.sh

index aeec802756f9f8d1aac5758c01a39b26a912fb4b..53357b849e50ff71a3bc445432025b823e353762 100755 (executable)
@@ -147,7 +147,7 @@ function nfs_stop()
     # stop the running nfs server
     local units="nfs-server nfs-kernel-server"
     for unit in $units; do
-        if systemctl status $unit < /dev/null; then
+        if systemctl --no-pager status $unit > /dev/null; then
             $SUDO systemctl stop $unit
         fi
     done