From bef1433ba3adb022f8b50eb9df0fbbbf90757d76 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Thu, 15 Apr 2021 14:46:50 +0200 Subject: [PATCH] [type/__postgres_conf] Accept empty values --- cdist/conf/type/__postgres_conf/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__postgres_conf/gencode-remote b/cdist/conf/type/__postgres_conf/gencode-remote index d0d247b4..27651600 100755 --- a/cdist/conf/type/__postgres_conf/gencode-remote +++ b/cdist/conf/type/__postgres_conf/gencode-remote @@ -57,7 +57,7 @@ psql_cmd() { case ${state_should} in (present) - test -s "${__object:?}/parameter/value" || { + test -n "${__object:?}/parameter/value" || { echo 'Missing required parameter --value' >&2 exit 1 }