Merge "scripts: scripts-library.sh: Hide 'which' command output"

This commit is contained in:
Jenkins 2017-08-23 09:41:54 +00:00 committed by Gerrit Code Review
commit 0f9c3d5bb7

View File

@ -182,7 +182,7 @@ function get_repos_info {
function get_instance_info {
TS="$(date +"%H-%M-%S")"
(cat /etc/resolv.conf && \
which systemd-resolve && \
which systemd-resolve &> /dev/null && \
systemd-resolve --statistics && \
cat /etc/systemd/resolved.conf) > \
"/openstack/log/instance-info/host_dns_info_${TS}.log" || true