From 0459bde77f4b23bd5c7b73b47b5d32cbd706778c Mon Sep 17 00:00:00 2001 From: Dominique Roux Date: Fri, 4 Oct 2019 22:41:18 +0200 Subject: [PATCH] missing exit 1 lead into an error and not good state of cdist --- cdist/conf/type/__prometheus_server/manifest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/conf/type/__prometheus_server/manifest b/cdist/conf/type/__prometheus_server/manifest index 8685130f..d337f6d2 100755 --- a/cdist/conf/type/__prometheus_server/manifest +++ b/cdist/conf/type/__prometheus_server/manifest @@ -17,7 +17,7 @@ rule_files="$(cat "$__object/parameter/rule-files")" ##### INSTALL THE PACKAGE ################################################### -require_pkg="" # what to require if I want to require "the package" +require_pkg="prometheus" # what to require if I want to require "the package" require="" if [ -f "$__object/parameter/install-from-backports" ]; then os=$(cat "$__global/explorer/os") @@ -33,6 +33,7 @@ if [ -f "$__object/parameter/install-from-backports" ]; then *) echo "--install-from-backports is only supported on Devuan -- ignoring." >&2 echo "Send a pull request if you require it." >&2 + exit 1 ;; esac else