From a2970fcae78b9973c20bdcb78a8a4ec0170aac93 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 20 May 2015 21:34:24 +0200 Subject: lib/cac.sh cac_listservers: return maybe data --- lib/cac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/cac.sh b/lib/cac.sh index 7ed06012a..482e4ddea 100644 --- a/lib/cac.sh +++ b/lib/cac.sh @@ -4,7 +4,7 @@ cac_listservers() {( listservers=$(_cac_get_api_v1 listservers) status=$(echo "$listservers" | jq -r .status) if [ "$status" = ok ]; then - echo "$listservers" + echo "$listservers" | jq -r .data else echo "$0: bad listservers status: $status" >&2 exit 1 -- cgit v1.2.3