qa/workunits/cephadm/test_cephadm: add --no-pager

avoid user interaction with the systemd pager

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch 2021-11-22 12:15:18 -07:00 committed by John Mulligan
parent 6f021ed62f
commit d95c6c8d77

View File

@ -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