Merge pull request #30747 from jfindlay/lxc_which

modules.lxc.running_systemd: use `command -v` not `which`
This commit is contained in:
Mike Place 2016-02-02 07:54:17 -07:00
commit 36752906c4

View file

@ -3188,7 +3188,7 @@ def running_systemd(name, cache=True, path=None):
'''\
#!/usr/bin/env bash
set -x
if ! which systemctl 1>/dev/null 2>/dev/null;then exit 2;fi
if ! command -v systemctl 1>/dev/null 2>/dev/null;then exit 2;fi
for i in \\
/run/systemd/journal/dev-log\\
/run/systemd/journal/flushed\\