mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
parent
6f021ed62f
commit
d95c6c8d77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user