From 6f04c9bfce56189a1cf72b50bcf19239f4a0e9e1 Mon Sep 17 00:00:00 2001 From: Mark Verboom Date: Fri, 25 Aug 2017 14:31:32 +0200 Subject: [PATCH] Explorer pipes output of apt-key list, which always generates: Warning: apt-key output should not be parsed (stdout is not a terminal) on stderr. Redirect stderr of apt-key to /dev/null to prevent output in cdist run. --- cdist/conf/type/__apt_key_uri/explorer/state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__apt_key_uri/explorer/state b/cdist/conf/type/__apt_key_uri/explorer/state index 15d6e653..6f607607 100755 --- a/cdist/conf/type/__apt_key_uri/explorer/state +++ b/cdist/conf/type/__apt_key_uri/explorer/state @@ -27,6 +27,6 @@ else name="$__object_id" fi -apt-key list | grep -Fqe "$name" \ +apt-key list 2> /dev/null | grep -Fqe "$name" \ && echo present \ || echo absent